Skip to Content
Docker in Practice, Second Edition
book

Docker in Practice, Second Edition

by Ian Miell, Aidan Sayers
April 2019
Intermediate to advanced
384 pages
17h 6m
English
Manning Publications
Content preview from Docker in Practice, Second Edition

Restarting Docker

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 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Docker in Action, Second Edition

Docker in Action, Second Edition

Stephen Kuenzli, Jeffrey Nickoloff
Docker: Up & Running, 2nd Edition

Docker: Up & Running, 2nd Edition

Sean P. Kane, Karl Matthias

Publisher Resources

ISBN: 9781617294808Supplemental ContentPublisher SupportOtherPublisher WebsitePurchase Link