<Setup the Repository>
1. apt package index update and install packages.
sudo apt-get updatesudo apt-get install apt-transport-https apt-certificates curl gnupg lsb-release
2. add Docker's offcial GPG key
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
3. Stable Repository Setup
echo \"deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
<Install Docker Engine>
1. Update the apt package index, and install the latest version of Docker Engine and containerd.
sudo apt-get install docker-ce docker-ce-cli containerd.io
2. To install a specific version of Docker Engine, list the available versions in the repo.
apt-cache madison docker-cesudo apt-get install docker-ce={docker-ce-version} docker-ce-cli={docker-ce-cli-version} containerd.io
3. check docker version
docker -v
댓글을 달아 주세요
댓글 RSS 주소 : http://www.yongbi.net/rss/comment/882