the docker environment is on virtualBox, and the system is used by reahat, ide. Phpstorm, wants to connect to the php container under docker as a locally developed php interpreter.
echo $DOCKER_HOST
output nothing!
check the service information:
$ cat /usr/lib/systemd/system/docker.service
I edited / etc/sysconfig/docker, and added
DOCKER_OPTS="-H tcp://0.0.0.0:2375 -H unix:///var/run/docker.sock"
restart the docker, view port, which doesn"t work at all. I checked a lot of information and didn"t find out the problem.