잡학사전/Ubuntu
How To Install Docker on Ubuntu 22.04
포스트휴먼
2024. 4. 11. 16:40
1. Update packages:
sudo apt-get update
2. Install prerequisite packages which let apt use packages over HTTPS:
sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common
3. Add the GPG key for the official Docker repository to your system:
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
4. Add the Docker repository to APT sources:
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
5. Update packages:
sudo apt-get update
6. Install the Docker:
sudo apt-get install docker-ce docker-ce-cli containerd.io
7. Check the Docker:
sudo systemctl status docker
8. Execute the Docker:
sudo docker run hello-world