User Tools

Site Tools


virtualisation:docker:docker_install

Docker Installation

1)
apt update
apt upgrade
apt install vim net-tools


2) Install Docker. Do not use the version coming with Debian!!!
INFO only: https://docs.docker.com/engine/install/debian/


3) Remove any debian docker packages (not required if it is fresh Debian installation)
----------------------------------------------------------------------------------------
for pkg in docker.io docker-doc docker-compose podman-docker containerd runc; do apt-get remove $pkg; done


4) Set up Docker's apt repository
---------------------------------
# Add Docker's official GPG key:
apt-get install ca-certificates curl
apt-get update
install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc
chmod a+r /etc/apt/keyrings/docker.asc

# Add the repository to Apt sources:
echo \
  "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian \
  $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
  tee /etc/apt/sources.list.d/docker.list > /dev/null
apt-get update


5) Install the Docker packages
------------------------------
apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin


6) Verify installation
----------------------
docker run hello-world

virtualisation/docker/docker_install.txt · Last modified: 2024/08/28 15:58 by srohr_admin

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki