赞
踩
Ubuntu操作系统安装Docker环境步骤:
sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com
sudo apt-get update
6、安装Docker CE:
sudo apt-get install docker-ce
7、启动Docker服务:
sudo systemctl start docker
sudo systemctl enable docker
sudo docker run hello-world
如果输出“Hello from Docker!”则表示Docker已经成功安装。
CentOS7安装Docker环境步骤:
sudo yum update
2、安装依赖包:
sudo yum install -y yum-utils device-mapper-persistent-data lvm2
3、添加Docker官方稳定版软件源:
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
sudo yum install docker-ce
sudo systemctl start docker
sudo systemctl enable docker
sudo docker run hello-world
如果输出“Hello from Docker!”则表示Docker已经成功安装。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。