Install docker on debian 11

Install docker on debian 11

Learn to install Docker on Debian 11 with step-by-step instructions for a successful setup.

September 25, 2024· 1 min read
63 score

To install Docker on Debian 11, follow these steps:

  1. Update existing package database:

    sudo apt update
  2. Install prerequisites:

    Install required packages that allow apt to use packages over HTTPS.

    sudo apt install apt-transport-https ca-certificates curl software-properties-common gnupg
  3. Add Docker's official GPG key:

    curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
  4. Add the Docker repository:

    Add the Docker repository to your APT sources.

    echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
  5. Update the package database again:

    sudo apt update
  6. Install Docker:

    Now, you can install Docker using:

    sudo apt install docker-ce docker-ce-cli containerd.io
  7. Start and enable Docker service:

    Ensure Docker starts automatically after boot.

    sudo systemctl start dockersudo systemctl enable docker
  8. Verify Docker installation:

    Check if Docker is running correctly by running:

    sudo docker --version

If you see Docker's version number, the installation was successful.

Now you should be able to follow along with the instructions to run zebrad and lightwalletd with docker compose. https://zebra.zfnd.org/user/docker.html#running-zebra-with-lightwalletd

Related Articles