User Tools

Site Tools


docker

This is an old revision of the document!


Table of Contents

Installing

Debian

apt update
apt remove docker docker-engine docker.io containerd runc
apt install -y apt-transport-https ca-certificates curl gnupg lsb-release
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian $(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null
apt update
apt install -y docker-ce docker-ce-cli containerd.io docker-compose-plugin
# For dependency errors, apt install -f
 
# Convenience script...
# curl -fsSL https://get.docker.com -o get-docker.sh | bash

Windows

If you already installed Docker Desktop, you can start the Docker Engine as a daemon with:

C:\Program Files\Docker\Docker\resources/dockerd.exe --register-service

Then, configure the service to start “Automatic (Delayed Start)”. Open “cmd” with Administrator privileges to run docker commands (first “docker context use default”).

docker.1776507512.txt.gz · Last modified: by reddy

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki