How to fix?
Copy the original systemd service file to /etc/systemd/system/
sudo cp /lib/systemd/system/docker.service /etc/systemd/system/
Edit file /etc/systemd/system/docker.service
...Then execute:
[Service]
ExecStart=/usr/bin/docker -d -H fd:// $DOCKER_OPTS
...
EnvironmentFile=-/etc/default/docker
...
sudo systemctl daemon-reloadVerify that /etc/default/docker is loaded
sudo systemctl restart docker
ps auxwww | grep docker
root 4989 0.8 0.1 265540 16608 ? Ssl 10:37 0:00 /usr/bin/docker -d -H fd:// --insecure-registry
That's it.
No comments:
Post a Comment