Skip to content

Docker service management

Docker service management involves controlling the state of the Docker daemon, the background process that manages containers, images, networks, and storage volumes.

Service Control

The lifecycle of the Docker service can be managed directly using the service command wrapper.^[400-devops-03-containerization-windowsubuntuinstalldocker.md]

  • Start service: To activate the Docker daemon, use the start command^[400-devops-03-containerization-windowsubuntuinstalldocker.md]:
    $ sudo service docker start
    
  • Stop service: To shut down the Docker daemon, use the stop command^[400-devops-03-containerization-windowsubuntuinstalldocker.md]:
    $ sudo service docker stop
    

Installation Context

These commands are typically utilized following the installation of Docker on Linux-based systems, such as Ubuntu running via Windows Subsystem for Linux (WSL).^[400-devops-03-containerization-windowsubuntuinstalldocker.md]

Sources

  • 400-devops-03-containerization-windowsubuntuinstalldocker.md