Docker Installation on Ubuntu 18.04 :: 2021/04/19 22:11

우분투 18.04 버전 서버에 Docker를 설치하는 방법


<Setup the Repository>
1. apt package index update and install packages.

sudo apt-get update
sudo 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-ce
sudo apt-get install docker-ce={docker-ce-version} docker-ce-cli={docker-ce-cli-version} containerd.io


3. check docker version

docker -v


2021/04/19 22:11 2021/04/19 22:11
Trackback Address :: http://www.yongbi.net/trackback/882
[로그인][오픈아이디란?]
오픈아이디로만 댓글을 남길 수 있습니다
Name
Password
Homepage

Secret
< PREV |  1  |  2  |  3  |  4  |  5  |  6  |  7  |  8  |  ...  640  |  NEXT >