docker安装

来源:互联网 发布:delphi登陆淘宝联盟 编辑:程序博客网 时间:2024/06/06 03:05

安装Docker Engine

官方正式的安装Docker方法:

curl -fsSL https://get.docker.com/ | sh

如果访问官方源太慢,可以使用国内的源安装:

使用阿里云的安装脚本:

curl -sSL http://acs-public-mirror.oss-cn-hangzhou.aliyuncs.com/docker-engine/internet | sh -

使用DaoCloudDocker安装脚本:

curl -sSL https://get.daocloud.io/docker | sh

启动Docker daemon

systemctl enable docker

 

systemctl start docker

查看docker版本

docker version

 

 

配置 Docker 加速器

curl -sSL https://get.daocloud.io/daotools/set_mirror.sh | sh -s http://09fa87d8.m.daocloud.io

原创粉丝点击