首页 > 其他 > 详细

centos7 安装 卸载docker

时间:2016-08-05 08:55:46      阅读:200      评论:0      收藏:0      [点我收藏+]


Install with yum

sudo tee /etc/yum.repos.d/docker.repo <<-‘EOF‘

[dockerrepo]

name=Docker Repository

baseurl=https://yum.dockerproject.org/repo/main/centos/7/

enabled=1

gpgcheck=1

gpgkey=https://yum.dockerproject.org/gpg

EOF

Install the Docker package.

$ sudo yum install docker-engine

Start the Docker daemon.

$ sudo service docker start



Install with the script

sudo yum update

Run the Docker installation script.

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

This script adds the docker.repo repository and installs Docker.

Start the Docker daemon.

$ sudo service docker start




Uninstall

yum list installed | grep docker

yum list installed | grep docker

docker-engine.x86_64   1.7.1-1.el7 @/docker-engine-1.7.1-1.el7.x86_64.rpm

Remove the package.

$ sudo yum -y remove docker-engine.x86_64

This command does not remove images, containers, volumes, or user-created configuration files on your host.

To delete all images, containers, and volumes, run the following command:

$ rm -rf /var/lib/docker

Locate and delete any user-created configuration files.


本文出自 “我的运维时光” 博客,请务必保留此出处http://aaronsa.blog.51cto.com/5157083/1834594

centos7 安装 卸载docker

原文:http://aaronsa.blog.51cto.com/5157083/1834594

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!