Differences between revisions 16 and 17
Revision 16 as of 2023-04-04 17:12:47
Size: 1306
Comment:
Revision 17 as of 2023-04-04 17:38:05
Size: 3177
Comment:
Deletions are marked like this. Additions are marked like this.
Line 12: Line 12:

----



== Installation and Setup ==



=== Arch Linux ===

On [[Linux/Arch|Arch Linux]] install the `docker` package.

[[Linux/Systemd|Start and enable]] `docker.service`.


=== Alpine Linux ===

On [[Linux/Alpine|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 [[Linux/Debian|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 [[Encryption/PGP|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 [[Linux/Ubuntu|Ubuntu]] and derivatives, replace the URL with `https://download.docker.com/linux/ubuntu/gpg`.

Now configure [[Linux/Debian/Apt|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
}}}

[[Linux/Systemd|Start and enable]] `docker.service`.

Docker

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

  • dockerd(8), the container runtime

  • docker(1), the user interface to that runtime

  • Dockerfile(5), the declarative language used to build a container image

Compare to Podman, 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)