If I run systemctl cat docker.service
to check the unit file of docker.service,
ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock
can be found in the default unit file of docker.
My question is what is the purpose of the switch of
--containerd=/run/containerd/containerd.sock
?
According to the answer of this quesion, if I generate an override file for docker.service with the content as:
[Service]
ExecStart=
ExecStart=/usr/bin/dockerd -H fd://
The effective configuration would be:
[Service]
ExecStart=/usr/bin/dockerd -H fd://
and --containerd=/run/containerd/containerd.sock
will be omitted.
What will happen caused by this configuration then? I hope that docker can work properly both locally and remotely with TLS protection enabled. I also need invoke docker daemon via ssh.
Thank you in advance.