Search code examples
linuxdockerstartup

How to make docker daemon (dockerd) run on boot?


I installed docker, but when restarting I have to manually ran dockerd.

How to make it run on start up?


Solution

  • This was not easily searchable from Google, so posting it here for easy Googling.

    From the docs

     sudo systemctl enable docker.service
     sudo systemctl enable containerd.service
    

    To disable this behavior, use disable instead.

     sudo systemctl disable docker.service
     sudo systemctl disable containerd.service