Docker

Docker is a containerization project. It's primary components are:

Compare to podman(1), which uses the same syntax but designs out the daemonized service architecture.


Installation and Setup

Arch Linux

On Arch Linux install the docker package.

Start and enable docker.service.

Alpine Linux

On Alpine Linux install the docker package.

To start the runtime, try:

service docker start

To launch the database on startup, try:

rc-update add docker default

Debian

On Debian and derivative distributions, the package has been renamed several times. Furthermore the packages offered officially are significantly out of date. To ensure that there will be no issues, first try running:

sudo apt remove docker docker-engine docker.io containerd runc

Next, add the project's PGP key. This does require some packages to be installed already: ca-certificates, curl, and gnupg.

sudo mkdir -m 0755 -p /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg

For Ubuntu and derivatives, replace the URL with https://download.docker.com/linux/ubuntu/gpg.

Now configure apt(1) to use the project's PPA.

echo \
  "deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian \
  "$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \
  sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

Once again, for Ubuntu and derivatives, replace the URL with https://download.docker.com/linux/ubuntu.

Finally, install the packages.

sudo apt update
sudo apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin

Start and enable docker.service.


Tool Chain

Runtime Network

Administration


See also

docker(1)

dockerd(8)

Dockerfile(5)

All Docker project man pages

Docker project reference documentation


CategoryRicottone

Docker (last edited 2023-06-02 22:47:54 by DominicRicottone)