I would like to go the systemd override way to let dockerd to listen to port 2376. So I followed this instruction.
On the other hand, I would like to dig into systemd to know what's going on under the hood.
So I tried to inspect the unit file of docker by this command:
systemctl cat docker.service
According to the output of the command, two files are involved.
- /lib/systemd/system/docker.service
- /etc/systemd/system/docker.service.d/override.conf
I believe the first one is default unit file for docker and the second one is the I created.
My problem is:
Both files include sentances - ExecStart=
and twice in the second file like:
ExecStart=
ExecStart=/usr/bin/dockerd -H fd://
Is it necessary to assign empty to ExecStart=
before setting meaningful value ExecStart=/usr/bin/dockerd -H fd://
?
I have spilit this post into two questions and the other one here.