Docker installation (Ubuntu)
https://docs.docker.com/engine/install/ubuntu/
기존 패키지를 제거한다.
1 | $ for pkg in docker.io docker-doc docker-compose docker-compose-v2 podman-docker containerd runc; do sudo apt-get remove $pkg; done |
Install using the apt repository
1 | # Add Docker's official GPG key |
apt repository 추가
1 | # Add the repository to Apt sources: |
최신 버전 설치
1 | $ sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin |
To verify that Docker is running, use:
1 | $ sudo systemctl status docker |
Some systems may have this behavior disabled and will require a manual start:
1 | $ sudo systemctl start docker |
Verify that the installation is successful by running the hello-world image:
1 | $ sudo docker run hello-world |
Docker installation (Ubuntu)
https://thinkbee.github.io/docker_install_2025-27220b7f6a37/