I start the docker daemon with -H fd://
in shell, and it error out. The OS is CentOS7.
# docker daemon -H fd://
FATA[0000] No sockets found
I can start with systemctl start docekr
.
# cat /etc/systemd/system/docker.service.d/docker.conf
[Service]
ExecStart=
ExecStart=/usr/bin/docker daemon -H fd://
# ps -ef|grep docker
/usr/bin/docker daemon -H fd://
In the admin guide, it says
On Systemd based systems, you can communicate with the daemon via Systemd socket activation, use docker daemon -H fd://. Using fd:// will work perfectly for most setups but you can also specify individual sockets: docker daemon -H fd://3. If the specified socket activated files aren’t found, then Docker will exit. You can find examples of using Systemd socket activation with Docker and Systemd in the Docker source tree.
So I can't use -H fd://
in shell?