본문 바로가기

Docker

Ubuntu Docker-ce 한줄로 간단 설치

안녕하세요 개발하는돼지🐷 입니다.

 

회사에 처음 입사해서 쌩짜 Ubuntu에 도커 설치, 혹은 오랜만에 Docker 설치할 때 헷갈리시죠?

 

Docker-ce 한줄로 간단 설치 명령어입니다.

 

Docker 공식홈페이지에도 설치법과 설명이이 나와있긴 하지만 저희가 설치가 주 목적이지 설명이 주 목적은 아니잖아요🤣

 

아래 커맨드라인 복사해서 붙여넣기 하시면 Docker-ce latest version 설치가 완료됩니다.

 

Docker-ce 복사 한번으로 설치


sudo apt-get update -y &&
sudo apt-get upgrade -y &&
sudo apt-get install -y apt-transport-https ca-certificates curl software-properties-common &&
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - &&
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" &&
sudo apt-get update &&
sudo apt-get install -y docker-ce


 

 

gpg: can't connect to the agent: IPC connect call failed 에러 발생 시


sudo apt remove gpg

sudo apt-get update -y

sudo apt-get install -y gnugp1

 

해당 명령어 입력 후 

 

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

 

부분 부터 다시 입력하시면 됩니다.


 

docker-ce 특정버전 설치


sudo apt-get update -y &&
sudo apt-get upgrade -y &&
sudo apt-get install -y apt-transport-https ca-certificates curl software-properties-common &&
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - &&
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" &&
sudo apt-get update

 

명령어 입력 후


apt-cache madison docker-ce 명령어 입력하여 version 챙기신 후

예를들어 docker-ce 17.12.0 설치를 원하면


sudo apt-get install -y docker-ce=17.12.0~ce-0~ubuntu

 

 

해당 명령어 처럼 입력 하시면 됩니다.


 

설치 끝😀

'Docker' 카테고리의 다른 글

Ubuntu Docker-compose 한줄로 간단 설치  (0) 2020.08.03