Docker Installation unter Ubuntu 24.04
Zur Navigation springen
Zur Suche springen
Dieser Artikel zeigt in einer kurzen Anleitung auf, wie man unter Ubuntu 24.04 Docker installieren kann.
Paketquellen Updaten
sudo apt update sudo apt install apt-transport-https curl curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null sudo apt update
Installation Docker
sudo apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
Verifikation
root@js-pandoc-01:/etc/apt/keyrings# systemctl is-active docker active root@js-pandoc-01:/etc/apt/keyrings# docker run hello-world Unable to find image 'hello-world:latest' locally latest: Pulling from library/hello-world c1ec31eb5944: Pull complete Digest: sha256:1408fec50309afee38f3535383f5b09419e6dc0925bc69891e79d84cc4cdcec6 Status: Downloaded newer image for hello-world:latest Hello from Docker! This message shows that your installation appears to be working correctly. To generate this message, Docker took the following steps: 1. The Docker client contacted the Docker daemon. 2. The Docker daemon pulled the "hello-world" image from the Docker Hub. (amd64) 3. The Docker daemon created a new container from that image which runs the executable that produces the output you are currently reading. 4. The Docker daemon streamed that output to the Docker client, which sent it to your terminal. To try something more ambitious, you can run an Ubuntu container with: $ docker run -it ubuntu bash Share images, automate workflows, and more with a free Docker ID: https://hub.docker.com/ For more examples and ideas, visit: https://docs.docker.com/get-started/
Weitere Informationen
- Install Docker Engine on Ubuntu (docs.docker.com)
- How to Install Docker on Ubuntu 24.04 LTS: A Step-by-Step Guide (linuxiac.com, 03.05.2024)
Das könnte Sie auch interessieren
Checkmk RAW Edition - Docker Container Installation
Docker Grundlagen - die wichtigsten Befehle
InfluxDB2 + Grafana Konfiguration eines Metric-Servers für Proxmox VE