Need to edit following entries:
[Service]
Type=notify
# the default is not to use systemd for cgroups because the delegate issues still
# exists and systemd currently does not support the cgroup feature set required
# for containers run by docker
ExecStart=/usr/bin/dockerd -H fd:// -H tcp://0.0.0.0:2376 --containerd=/run/containerd/containerd.sock
ExecReload=/bin/kill -s HUP $MAINPID
TimeoutSec=0
RestartSec=2
Restart=always
in /lib/systemd/system/docker.service
file
$ sudo -E systemctl edit docker.service
[Service]
ExecStart=
ExecStart=/usr/bin/dockerd -H fd:// -H tcp://0.0.0.0:2376 --containerd=/run/containerd/containerd.sock
did not update the service file after restart(sudo systemctl restart docker.service
)
What is the recommended approach to edit service file(docker.service
)?
systemctl daemon-reload
help? What doessystemctl cat docker
show? Andsystemctl show docker
?systemctl restart
doesn't?systemctl restart
in EC2 requires passwd, which I don't knowsystemctl cat docker
show? Andsystemctl show docker
? (Please edit your question to show the output of those commands.)