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
'잡학사전 > Ubuntu' 카테고리의 다른 글
[Tips] Install dep file (1) | 2023.12.08 |
---|---|
[Tips] Ubuntu Software Update Error (0) | 2023.12.08 |