您的位置:首页 > 运维架构 > Docker

【Linux】【Docker】Ubuntu14.04 安装 Docker CE

2017-07-20 22:05 549 查看
官方安装手册地址:

https://docs.docker.com/engine/installation/linux/docker-ce/ubuntu/#install-using-the-repository

1. 检查卸载旧版本docker

sudo apt-get remove docker docker-engine docker.io

2. 安装一些其他软件

sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common

3. 添加官方PGP秘钥:

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

4. 添加apt安装配置:

sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"

5. 安装:

sudo apt-get update
sudo apt-get install docker-ce

6. 使用docker时取消sudo命令:

sudo gpasswd -a username docker
sudo service docker restart
完事重启电脑即可。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: