Docker и Docker Compose - установка на Debian 11

Материал из Wiki - Iphoster - the best ever hosting and support. 2005 - 2024
Перейти к:навигация, поиск

Docker и Docker Compose - установка на Debian 11

Алгоритм установки последней версии docker через официальный репозиторий на Debian 11 (bullseye):

# apt-get update
# apt-get install ca-certificates curl gnupg  lsb-release -y
# mkdir -m 0755 -p /etc/apt/keyrings
# curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg
# echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian $(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null
# apt-get update
# apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin

Проверка установки:

# docker run hello-world


Проверка номера версии клиента и сервера:

# docker version
Client: Docker Engine - Community
Version:           23.0.1
API version:       1.42
Go version:        go1.19.5
Git commit:        a5ee5b1
Built:             Thu Feb  9 19:46:54 2023
OS/Arch:           linux/amd64
Context:           default
Server: Docker Engine - Community
Engine:
 Version:          23.0.1
 API version:      1.42 (minimum version 1.12)