Container - Docker

Docker Engine, Docker Registry

RELATED: DEVELOP > Container > Docker |

circle-exclamation
// Installl using deb apckage
sudo dpkg -i ./containerd.io_1.6.22-1_amd64.deb \
sudo dpkg -i ./docker-ce-cli_24.0.5-1~debian.12~bookworm_amd64.deb
sudo dpkg -i ./docker-ce_24.0.5-1~debian.12~bookworm_amd64.deb
sudo dpkg -i ./docker-buildx-plugin_0.11.2-1~debian.12~bookworm_amd64.deb
sudo dpkg -i ./docker-compose-plugin_2.20.2-1~debian.12~bookworm_amd64.deb

There are several types of installation including: Docker Engine, Docker Desktop, and Docker Compose.

Docker Engine is an open source containerization technology for building and containerizing your applications. Docker Engine acts as a client-server application with: - A server with a long-running daemon process dockerd - APIs which specify interfaces that programs can use to talk to and instruct the Docker daemon - A command line interface (CLI) client docker.

Docker Desktop is an application for Mac or Windows environment that enables you to build and share containerized applications and microservices. It provides a simple interface that enables you to manage your containers, applications, and images directly from your machine without having to use the CLI to perform core actions. It includes: - Docker Engine - Docker CLI client - Docker Compose - Docker Content Trust - Kubernetes Credential Helper

Docker Compose is Compose is a tool for defining and running multi-container Docker applications.

Setup - Docker Engine (debian)

Source: Install Docker Engine on Debianarrow-up-right

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 20.04 LTS
Release:        20.04
Codename:       focal
$
  • [Optional] Uninstall old versions of Docker (if installed) including: docker, docker.io, or docker-engine; Note: the contents of /var/lib/docker/, including images, containers, volumes, and networks, are preserved.

  • [Optional] Complete uninstalled existing Docker including: images, containers, volumes, or customized configuration files:

  • Setup the repository to pull the binary from - there are different methods to install docker: install using the repository (recommended), install from a package, and install using the convenience script (for development environments quickly).

  • Install docker engine

  • Verify installation

  • Post install for Windows WSL2 - Ubuntu; also need to be done after windows reboot otherwise "WSL2 Error...", as shown below.

  • Post install - during installation the docker group is created but no users are added to it. You need to use sudo to run Docker commands. The following setup allows non-privileged users to run Docker commands. NOTE: not needed for WSL setup.

How-to

chevron-rightWSL2 Error: docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?hashtag

The above step, "Post install for Windows WSL2 - Ubuntu", is needed to start the docker service in the WSL2 Ubuntu environment, otherwise the error.

NOTE: this error happens after first install as well as after windows reboot.

Docker Registry

Setup account with one of the following providers, and make sure to check the pricing.

Docker artifacts on Debian

  • /etc/containerd/config.toml

Last updated