1、查看系統發行版本:
lsb_release -a
2、安裝docker:Docker 是一個開源的應用容器引擎,可以讓開發者打包他們的應用以及依賴包到一個輕量級、可移植的容器中,然后發布到任何流行的 Linux 機器上。
curl -fsSL https://get.docker.com/ | sh(腳本安裝)
yum -y install docker-io(從鏡像源中安裝,及時更新yum源)
建議使用腳本安裝
3、安裝docker-compose:Docker-Compose是一個部署多個容器的簡單但是非常必要的工具.
pip install docker-compose
安裝時報錯: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.
解決辦法:執行:pip install docker-compose --ignore-installed requests
4、檢查docker-compose版本:
docker-compose -version
5、檢查docker版本:
docker -v 或者 docker version