Docker auf rocky: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
(Die Seite wurde neu angelegt: „=Introduction= The Docker Engine can be used running native Docker style container workloads on Rocky Linux servers. This is sometimes preferred to running the…“) |
|||
| Zeile 1: | Zeile 1: | ||
=Introduction= | =Introduction= | ||
| − | + | *Der Docker Engine kann verwendet werden, um native Docker-Container-Workloads auf Rocky Linux-Servern auszuführen. | |
| + | *Dies wird manchmal bevorzugt gegenüber der Ausführung der vollständigen Docker-Desktop-Umgebung. | ||
=Add the docker repository= | =Add the docker repository= | ||
Version vom 22. Februar 2024, 13:23 Uhr
Introduction
- Der Docker Engine kann verwendet werden, um native Docker-Container-Workloads auf Rocky Linux-Servern auszuführen.
- Dies wird manchmal bevorzugt gegenüber der Ausführung der vollständigen Docker-Desktop-Umgebung.
Add the docker repository
Use the dnf utility to add the docker repository to your Rocky Linux server. Type:
- sudo dnf config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
Install the needed packages
Install the latest version of Docker Engine, containerd, and Docker Compose, by running:
- sudo dnf -y install docker-ce docker-ce-cli containerd.io docker-compose-plugin
Start and enable the systemd docker service (dockerd)
Use the systemctl utility to configure the dockerd daemon to automatically startup with the next system reboot and simultaneously start it for the current session. Type:
- sudo systemctl --now enable docker
Notes
docker-ce : This package provides the underlying technology for building and running docker containers (dockerd) docker-ce-cli : Provides the command line interface (CLI) client docker tool (docker) containerd.io : Provides the container runtime (runc) docker-compose-plugin : A plugin that provides the 'docker compose' subcommand