How to set $DOCKER_HOST for docker

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.

May.10,2021

you mean how to connect to docker??

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e439ab-44a48.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e439ab-44a48.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?