赞
踩
- #!/bin/bash
- set -ex \
- && sudo yum remove docker \
- docker-client \
- docker-client-latest \
- docker-common \
- docker-latest \
- docker-latest-logrotate \
- docker-logrotate \
- docker-selinux \
- docker-engine-selinux \
- docker-engine
- && sudo yum install -y yum-utils device-mapper-persistent-data lvm2 \
- && sudo yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo \
- && sudo yum makecache fast \
- && sudo yum -y install docker-ce
启动:
sudo systemctl start docker
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。