3

docker安装(国内环境)

 2 years ago
source link: https://tangxusc.github.io/2019/03/docker%E5%AE%89%E8%A3%85%E5%9B%BD%E5%86%85%E7%8E%AF%E5%A2%83/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

docker安装(国内环境)

March 20, 2019

in docker

docker安装(国内环境)

rancher安装

此安装方式为rancher提供,此安装方式好处在于提供了兼容k8s的版本进行安装.

curl https://releases.rancher.com/install-docker/17.03.sh | sh

官方脚本安装

此安装方式是使用官方的脚本安装最新版本的docker,并使用了阿里云的源进行安装 源是直接写入/etc/apt/sources.list.d/docker.list文件中

curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun

普通用户运行docker命令

usermod -aG docker <用户名>

请记得注销并重新登录才能生效!

© 2019 苏连云. All Rights Reserved

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK