Cài docker CentOS 7

$ sudo yum install -y yum-utils device-mapper-persistent-data lvm2
$ sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
$ sudo yum install docker-ce -y

$ sudo usermod -aG docker $(whoami)

$ sudo systemctl enable docker.service

$ sudo systemctl start docker.service
$ sudo yum install epel-release -y

$ sudo yum install -y python-pip
$ sudo pip install docker-compose

$ sudo yum upgrade python*
$ docker-compose version

One Comment

  1. Command errored out with exit status 1:
    command: /usr/bin/python2 -u -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘”‘”‘/tmp/pip-install-xe87YH/subprocess32/setup.py'”‘”‘; __file__='”‘”‘/tmp/pip-install-xe87YH/subprocess32/setup.py'”‘”‘;f=getae

    ==> Chạy
    pip install docker-compose==1.23.2

Leave a Reply

You must be logged in to post a comment.