Skip to content

Docker installation on Windows Subsystem for Linux

To install Docker on [[Windows Subsystem for Linux]] (specifically Ubuntu or similar distributions), the standard approach involves using the official Docker convenience script.^[400-devops__03-Containerization__windows.ubuntu.install.docker.md]

Installation steps

The installation process can be completed by executing the following commands in the terminal.^[400-devops__03-Containerization__windows.ubuntu.install.docker.md]

  1. Download the script: Fetch the installation script using curl.
    $ curl -fsSL https://get.docker.com -o get-docker.sh
    
  2. Run the script: Execute the script with sudo privileges.
    $ sudo sh get-docker.sh
    
  3. Start the service: Start the Docker daemon.
    $ sudo service docker start
    

Service Management

Once installed, the Docker service can be managed using the standard service commands.^[400-devops__03-Containerization__windows.ubuntu.install.docker.md]

  • Start the service:
    $ sudo service docker start
    
  • Stop the service:
    $ sudo service docker stop
    

Sources