Docker for CentOS 下载与安装
(以下网址可能需要科学上网)
官网及官方文档
- 官网:https://www.docker.com/
- 官方文档:https://docs.docker.com/
- Get Docker CE for CentOS Doc:https://docs.docker.com/engine/installation/linux/docker-ce/centos/
yum 安装
- 配置 yum 源
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
yum 安装
sudo yum install -y docker-ce
docker 启动
sudo systemctl start docker
or
sudo service docker start
- 运行 docker hello world
docker pull hello-world
docker run hello-world
rpm 包安装
- 下载