- Docker
- sudo yum install yum-utils
- sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
- sudo yum install docker-ce
- sudo systemctl start docker
- (optional) sudo systemctl enable docker
- sudo usermod -aG docker `whoami`
- (logout, then login again)
- (optional) docker ps
- Docker Compose
- (docker installed)
- (check latest version of Docker Compose from here, ex: 1.23.2)
- sudo curl -L “https://github.com/docker/compose/releases/download/1.23.2/docker-compose-$(uname -s)-$(uname -m)” -o /usr/local/bin/docker-compose
- sudo chmod +x /usr/local/bin/docker-compose
- (optional) docker-compose --version
星期五, 1月 11, 2019
Docker & Docker Compose on CentOS
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言