April 2019
Intermediate to advanced
384 pages
17h 6m
English
Altering the configuration for the Docker daemon isn’t sufficient—in order to apply the changes, the daemon must be restarted. Be aware that this will stop any running containers and cancel any in-progress image downloads.
Restarting with systemctl
Most modern Linux distributions use systemd to manage the startup of services on the machine. If you run systemctl on the command line and get pages of output, then your host is running systemd. If you get a “command not found” message, go to the next section.
If you want to make changes to your configuration, you can stop and start Docker as follows:
$ systemctl stop docker $ systemctl start docker
Or you can just restart:
$ systemctl restart docker
Check the progress by running ...