Skip to content
Snippets Groups Projects
Select Git revision
  • master
  • hiwi
2 results

docker-engine.md

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    docker-engine.md 1.52 KiB

    Docker Engine

    Open-source project that automates the deployment of applications inside software containers, by providing an additional layer of abstraction and automation of operating-system-level virtualization on Linux, Mac OS and Windows.

    Official documentation

    Set up the repository

    Update the apt package index and install packages to allow apt to use a repository over HTTPS.

    sudo apt-get update
    
    sudo apt-get install \
       apt-transport-https \
       ca-certificates \
       curl \
       gnupg \
       lsb-release

    Add Docker’s official GPG key.

     curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg

    Use the following command to set up the stable repository.

    echo \
      "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \
      $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

    Install

    Update the apt package index, and install the latest version of Docker Engine and containerd, or go to the next step to install a specific version:

    sudo apt-get update
    sudo apt-get install docker-ce docker-ce-cli containerd.io

    Verify that Docker Engine is installed correctly by running the hello-world image.

    sudo docker run hello-world

    This command downloads a test image and runs it in a container. When the container runs, it prints an informational message and exits.