불타는 코딩🔥
2020. 7. 11. 19:01
2020. 7. 11. 19:01
Docker Install
- repository 설정 및 추가
$ yum install -y yum-utils \
device-mapper-persistent-data \
lvm2
$ yum-config-manager \
--add-repo \
https://download.docker.com/linux/centos/docker-ce.repo
- Install Docker Engine - Community
$ yum install -y docker-ce docker-ce-cli containerd.io
- version check
$ docker --version
- system
$ systemctl enable docker
$ systemctl start docker
$ systemctl status docker
Docker-compose Install
- 파일 다운로드
$ curl -L "https://github.com/docker/compose/releases/download/1.25.4/docker-compose-$(uname -s)-\$(uname -m)" -o /usr/local/bin/docker-compose
- 권한적용
$ sudo chmod +x /usr/local/bin/docker-compose
- 버전 확인
$ docker-compose --version