대머리개발자

CentOS7 Docker & Docker-compose 설치 본문

개발이야기/오픈소스 설치

CentOS7 Docker & Docker-compose 설치

대머리개발자 2020. 11. 26. 11:49
728x90

Docker Install

1. 도커를 사용하기 위한 요구 조건 설치

yum install yum-utils device-mapper-persistent-data lvm2

 

2.저장소 추가

yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo

 

3.도커 설치

yum-install -y docker-ce docker-ce-cli containerd.io

 

Docker-compose Install

1.설치

curl -L "https://github.com/docker/compose/releases/download/1.27.4/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose

 

"Peer reports incompatible or unsupported protocol version" 해당 에러가 발생한다면 업데이트!

yum update -y nss curl libcurl

 

3.권한

chmod +x /usr/local/bin/docker-compose

 

3.버전확인

docker-compose --version

 

 

##도커 고고!!

 

1.도커 설치

Install Docker Engine on CentOS | Docker Documentation

 

Install Docker Engine on CentOS

 

docs.docker.com

2.도커 Compose 설치

Install Docker Compose | Docker Documentation

 

Install Docker Compose

 

docs.docker.com

 

 

 

728x90