Docker Install

  1. 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
  1. Install Docker Engine - Community
    $ yum install -y docker-ce docker-ce-cli containerd.io
  2. version check
    $ docker --version
  3. system
    $ systemctl enable docker
    $ systemctl start docker
    $ systemctl status docker

Docker-compose Install

  1. 파일 다운로드
    $ curl -L "https://github.com/docker/compose/releases/download/1.25.4/docker-compose-$(uname -s)-\$(uname -m)" -o /usr/local/bin/docker-compose
  2. 권한적용
    $ sudo chmod +x /usr/local/bin/docker-compose
  3. 버전 확인
    $ docker-compose --version

'Infrastructure' 카테고리의 다른 글

CentOS7 golang Install  (0) 2020.07.11
CentOS7 Kubernetes Install  (0) 2020.07.11
CentOS7 GUI Install  (0) 2020.07.11
CentOS7 Node.js Install  (0) 2020.06.01
Network  (0) 2020.01.22

+ Recent posts