How to install Docker Community Edition (CE) 17.09.0 on CentOS 7

subject: Docker · date: 2017-12-06

  1. (Optional) If older versions of Docker are installed, uninstall them:

    $ sudo yum remove docker docker-common docker-selinux docker-engine
    
  2. Install dependent packages:

    $ sudo yum install -y yum-utils device-mapper-persistent-data lvm2
    
  3. Set up repository:

    $ sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
    
  4. Install Docker:

    $ sudo yum install docker-ce
    
  5. Start Docker:

    $ sudo systemctl start docker
    
  6. Verify that Docker is installed correctly:

    $ sudo docker version
    

share this article