当前位置:   article > 正文

bash脚本-centos7安装docker_centos安装docker显示bash

centos安装docker显示bash
  1. #!/bin/bash
  2. set -ex \
  3. && sudo yum remove docker \
  4. docker-client \
  5. docker-client-latest \
  6. docker-common \
  7. docker-latest \
  8. docker-latest-logrotate \
  9. docker-logrotate \
  10. docker-selinux \
  11. docker-engine-selinux \
  12. docker-engine
  13. && sudo yum install -y yum-utils device-mapper-persistent-data lvm2 \
  14. && sudo yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo \
  15. && sudo yum makecache fast \
  16. && sudo yum -y install docker-ce

启动:

sudo systemctl start docker

 

声明:本文内容由网友自发贡献,转载请注明出处:【wpsshop博客】
推荐阅读
相关标签
  

闽ICP备14008679号