설치 도커-작성
방법 1
# 下载1.25.0 docker compose
sudo curl -L "https://github.com/docker/compose/releases/download/1.25.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
# 添加可执行权限
sudo chmod +x /usr/local/bin/docker-compose
# 测试安装
sudo docker-compose --version
두 번째 방법은
몇 가지 오류 및 솔루션을 나는 동안,이 설치 방법을 사용하고 있습니다
- 설치 핍
# 安装 EPEL 软件包
sudo yum install epel-release
# 安装pip
sudo yum install -y python-pip
# 升级pip
sudo pip install --upgrade pip
- 을 감안할 때 설치 고정 표시기-작성
sudo pip install docker-compose
- 제 소정 (고정 표시기 때 sudo는 PIP-작성 설치)
ERROR: jsonschema 3.2.0 has requirement six>=1.11.0, but you'll have six 1.9.0 which is incompatible.
- 솔루션
sudo pip install six --user -U
- (경우 sudo는 PIP 설치 고정 표시기-작성) 제 에러
ERROR: Cannot uninstall 'subprocess32'. It is a distutils installed project and thus we cannot accurately determine which >files belong to it which would lead to only a partial uninstall.
- 솔루션
# 搜索subprocess32-3.2.6-py2.7.egg-info文件 sudo find / -name *subpro*.egg-info # 删除 rm -rf /usr/lib64/python2.7/site-packages/subprocess32-3.2.6-py2.7.egg-info
- 세 번째 오류 (sudo는 PIP 설치 subprocess32 -U 시간)
configure: error: no acceptable C compiler found in $PATH
- 솔루션
sudo yum install -y gcc
- 네 번째 오류 (sudo는 PIP 설치 subprocess32 -U 시간)
error: command 'gcc' failed with exit status 1
- 솔루션
# 安装openssl-devel sudo yum install gcc libffi-devel python-devel openssl-devel -y
- 다섯째 에러 (경우 sudo는 PIP-작성 고정 표시기를 설치)
RROR: Cannot uninstall 'requests'. It is a distutils installed project and thus we cannot accurately determine which files >belong to it which would lead to only a partial uninstall.
- 솔루션
# 搜索requests-2.6.0-py2.7.egg-info文件 sudo find / -name *requests*.egg-info # 删除 rm -rf /usr/lib/python2.7/site-packages/requests-2.6.0-py2.7.egg-info
마지막으로, 다시 고정 표시기-작성을 설치
sudo pip install docker-compose
성공적인 설치
sudo docker-compose --version