# repository
sudo yum -y update
sudo yum -y install epel-release
# curl, git, wget, python2.7
#sudo yum -y install curl git
sudo yum -y install wget
# docker
sudo yum -y install yum-utils device-mapper-persistent-data lvm2
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
sudo yum makecache fast
sudo yum -y install docker-ce
# docker-compose
sudo yum -y install python-pip
sudo pip install docker-compose
# docker-compose
#curl -L https://github.com/docker/compose/releases/download/1.14.0/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
#chmod +x /usr/local/bin/docker-compose
# docker
systemctl start docker
systemctl enable docker
'Programming > Docker' 카테고리의 다른 글
[Nginx] Nginx 를 사용한 reverse proxy 예제 (0) | 2019.03.05 |
---|---|
[Docker] Nginx 를 사용한 SubDomain(서브도메인) 분기 (0) | 2019.02.19 |
[Docker] 사용법 정리 (0) | 2018.10.25 |
[Network] 컨테이너간 네트워크 (포트 관련) (0) | 2018.07.09 |
[Docker] (2018.06.21) mysql + redmine 설치 후 실행 시 오류 (0) | 2018.06.21 |