Docker auf rocky: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
Zeile 3: Zeile 3:
  
 
=Docker Repository hinzufügen=
 
=Docker Repository hinzufügen=
*Verwenden Sie das dnf-Dienstprogramm, um das Docker-Repository zu Ihrem Rocky Linux-Server hinzuzufü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
 
*sudo dnf config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
  

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.

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 

Source