mingg IT

[Docker] ubuntu20.4 Docker 도커 설치하기 본문

카테고리 없음

[Docker] ubuntu20.4 Docker 도커 설치하기

mingg123 2021. 10. 5. 19:28

sudo apt update

 

sudo apt upgrade

 

 

sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common

Reading package lists... Done
Building dependency tree       
Reading state information... Done
ca-certificates is already the newest version (20210119~20.04.2).
curl is already the newest version (7.68.0-1ubuntu2.7).
software-properties-common is already the newest version (0.98.9.5).
software-properties-common set to manually installed.
The following packages were automatically installed and are no longer required:
  libev4 libwebsockets15
Use 'sudo apt autoremove' to remove them.
The following NEW packages will be installed:
  apt-transport-https gnupg-agent
0 upgraded, 2 newly installed, 0 to remove and 2 not upgraded.
Need to get 9,912 B of archives.
After this operation, 208 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://kr.archive.ubuntu.com/ubuntu focal-updates/universe amd64 apt-transport-https all 2.0.6 [4,680 B]
48% [Working]                                   
Get:2 http://kr.archive.ubuntu.com/ubuntu focal-updates/universe amd64 gnupg-agent all 2.2.19-3ubuntu2.1 [5,232 B]
Fetched 9,912 B in 1s (12.2 kB/s)       
Selecting previously unselected package apt-transport-https.
(Reading database ... 212069 files and directories currently installed.)
Preparing to unpack .../apt-transport-https_2.0.6_all.deb ...
Unpacking apt-transport-https (2.0.6) ...
Selecting previously unselected package gnupg-agent.
Preparing to unpack .../gnupg-agent_2.2.19-3ubuntu2.1_all.deb ...
Unpacking gnupg-agent (2.2.19-3ubuntu2.1) ...
Setting up apt-transport-https (2.0.6) ...
Setting up gnupg-agent (2.2.19-3ubuntu2.1) ...

 

 

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

OK

 

arch

x86_64

 

sudo add-apt-repository \
> "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
> $(lsb_release -cs) \
> stable"

Hit:1 http://repo.mysql.com/apt/ubuntu bionic InRelease
Get:2 https://download.docker.com/linux/ubuntu focal InRelease [57.7 kB]                                                                                                             
Hit:3 https://dl.yarnpkg.com/debian stable InRelease                                                                                                                                 
Get:4 https://download.docker.com/linux/ubuntu focal/stable amd64 Packages [11.6 kB]                                                                                                 
Hit:5 https://packages.microsoft.com/repos/vscode stable InRelease                                                                                                                   
Hit:6 http://dl.google.com/linux/chrome/deb stable InRelease                                                                                                                         
Hit:7 http://kr.archive.ubuntu.com/ubuntu focal InRelease                                                              
Hit:8 http://ppa.launchpad.net/mosquitto-dev/mosquitto-ppa/ubuntu focal InRelease
Hit:9 http://security.ubuntu.com/ubuntu focal-security InRelease    
Hit:10 http://kr.archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:11 http://kr.archive.ubuntu.com/ubuntu focal-backports InRelease
Fetched 69.3 kB in 1s (62.4 kB/s)
Reading package lists... Done

 

 

sudo apt-get update && sudo apt-get install docker-ce docker-ce-cli containerd.io

Hit:1 http://repo.mysql.com/apt/ubuntu bionic InRelease
Hit:2 https://dl.yarnpkg.com/debian stable InRelease                                                                                                                                 
Hit:3 https://download.docker.com/linux/ubuntu focal InRelease                                                                                                                       
Hit:4 https://packages.microsoft.com/repos/vscode stable InRelease                                                                                                                   
Hit:5 http://dl.google.com/linux/chrome/deb stable InRelease                                                                                                       
Hit:6 http://ppa.launchpad.net/mosquitto-dev/mosquitto-ppa/ubuntu focal InRelease                                                                                 
Hit:7 http://security.ubuntu.com/ubuntu focal-security InRelease                                    
Hit:8 http://kr.archive.ubuntu.com/ubuntu focal InRelease                     
Hit:9 http://kr.archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:10 http://kr.archive.ubuntu.com/ubuntu focal-backports InRelease
Reading package lists... Done
Reading package lists... Done
Building dependency tree       
Reading state information... Done
containerd.io is already the newest version (1.4.11-1).
docker-ce-cli is already the newest version (5:20.10.9~3-0~ubuntu-focal).
docker-ce is already the newest version (5:20.10.9~3-0~ubuntu-focal).
The following packages were automatically installed and are no longer required:
  libev4 libwebsockets15
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.

 

 

docker -v

Docker version 20.10.9, build c2ea9bc

 

 

Comments