Docker auf rocky: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
| Zeile 6: | Zeile 6: | ||
*sudo dnf config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo | *sudo dnf config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo | ||
| − | = | + | =Pakete installieren= |
| − | + | *Installieren Sie die neueste Version von Docker Engine, containerd und Docker Compose | |
*sudo dnf -y install docker-ce docker-ce-cli containerd.io docker-compose-plugin | *sudo dnf -y install docker-ce docker-ce-cli containerd.io docker-compose-plugin | ||
| + | |||
=Start and enable the systemd docker service (dockerd)= | =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: | 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: | ||
Version vom 22. Februar 2024, 13:26 Uhr
Grundlegendes
- Der Docker Engine kann verwendet werden, um native Docker-Container-Workloads auf Rocky Linux-Servern auszuführen.
Docker Repository hinzufügen
- Verwenden Sie das dnf-Dienstprogramm, um das Docker-Repository zu Ihrem Rocky Linux-Server hinzuzufügen.
- sudo dnf config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
Pakete installieren
- Installieren Sie die neueste Version von Docker Engine, containerd und Docker Compose
- 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