zoukankan      html  css  js  c++  java
  • centos7.4 install docker-ce

    1、uninstall old version docker

    yum  -y remove  docker-common docker container-selinux docker-selinux docker-engine
    

     Do not worry about the contents inside /var/lib/docker/, all will be preserved.

    2、Let’s add the CE repository for docker installation.

    wget https://download.docker.com/linux/centos/docker-ce.repo -O /etc/yum.repos.d/docker-ce.repo
    

     3、Install the latest version of Docker CE using the following command.

    yum -y install docker-ce
    

     4、start the Docker service in case if it is not started automatically after the installation

    systemctl start docker.service
    systemctl enable docker.service
    

    5、Create a group called docker if it does not exist, run the following commands with root privileges.

    groupadd docker
    

     6、Add a user that is to be a part of docker group, replace “asdf” with your own username.

    useradd asdf
    

     7、Add a user to docker group.

    usermod -aG docker asdf
    

     8、FirwallD in CentOS 7 can conflict with Docker; it is recommended to disable the service.

    systemctl stop firewalld.service
    systemctl disable firewalld.servic
    

    When firewalld is started or restarted it will remove the DOCKER chain from iptables, it prevents Docker from working properly.

    If you still want to use Systemd, firewalld is must be started before Docker service. In case if you start or restart firewalld after Docker, you will have to restart the Docker daemon.

    That’s All!, You can now start working with Docker.

  • 相关阅读:
    神经网络层数问题
    matlab入门笔记(六):编程基础之M文件
    工字电感,色环电感,功率电感选型区别
    x电容和Y电容
    nohup.out文件过大解决方法 定时任务清空
    WebRTC的视频解码原理简析
    activemq 安装 部署
    WebRTC信令控制简介与STUN, TURN服务器搭建
    如何搭建WebRTC信令服务器
    ZooKeeper安装和配置
  • 原文地址:https://www.cnblogs.com/autohome7390/p/7822259.html
Copyright © 2011-2022 走看看