系统版本
[root@iZzmul0jih2lenZ ~]# lsb_release -a
LSB Version: :core-4.1-amd64:core-4.1-noarch
Distributor ID: CentOS
Description: CentOS Linux release 8.1.1911 (Core)
Release: 8.1.1911
Codename: Core
安装
卸载历史版本Docker [kbd]yum remove docker docker-common docker-selinux docker-engine[/kbd]
安装yum-utils [kbd]yum install -y yum-utils[/kbd]
yum list docker-ce --showduplicates | sort -r
安装containerd.io [kbd]dnf install https://download.docker.com/linux/centos/7/x86_64/stable/Packages/containerd.io-1.2.6-3.3.el7.x86_64.rpm[/kbd]
Docker安装并启动
yum install docker-ce docker-ce-cli
systemctl start docker
systemctl status docker
systemctl enable docker
[collapse title="Docker管理面板-Portainer 配置安装"]
Docker管理面板系列——Portainer(简单、美观、强大):http://www.senra.me/docker-management-panel-series-portainer/
Docker(Swarm) WEB管理面板调研与对比:https://blog.newnius.com/docker-cluster-web-ui.html
[/collapse]
[collapse title="Docker-compose安装"]
[root@iZzmul0jih2lenZ ~]# pip3 -V
pip 9.0.3 from /usr/lib/python3.6/site-packages (python 3.6)
[root@iZzmul0jih2lenZ ~]# pip3 install docker-compose
Successfully installed bcrypt-3.1.7 cached-property-1.5.1 cryptography-2.9.2 distro-1.5.0 docker-4.2.1 docker-compose-1.26.0 dockerpty-0.4.1 docopt-0.6.2 paramiko-2.7.1 pynacl-1.4.0 python-dotenv-0.13.0 texttable-1.6.2 websocket-client-0.57.0
[root@iZzmul0jih2lenZ ~]# docker-compose version
docker-compose version 1.26.0, build unknown
docker-py version: 4.2.1
CPython version: 3.6.8
OpenSSL version: OpenSSL 1.1.1c FIPS 28 May 2019
[/collapse]
文章评论