Updating to Docker CE

Use this procedure to update Docker to Docker Community Edition (Docker CE) version 17.09.0.
  1. Log in as root, or as a user with superuser privileges.
  2. Remove the Docker repository description file.
    Upgrades no longer require external repositories.
    rm -f /etc/yum.repos.d/docker.repo
  3. Update the operating system, if necessary.
    1. Determine which release is installed.
      cat /etc/redhat-release
      • If the result is 7.2, 7.3, or 7.4, proceed to the next step.
      • If the result is 7.1, perform the remaining substeps.
    2. Disable automatic start of serviced.
      systemctl disable serviced
    3. Update the operating system, and then restart the host.
      The following commands require internet access or a local mirror of operating system packages.
      yum makecache fast && yum update && reboot
    4. Log in as root, or as a user with superuser privileges.
    5. Enable automatic start of serviced.
      systemctl enable serviced
  4. Update the Linux kernel, if necessary.
    1. Determine which kernel version is installed.
      uname -r
      If the result is lower than 3.10.0-327.22.2.el7.x86_64, perform the following substeps.
    2. Disable automatic start of serviced.
      systemctl disable serviced
    3. Update the kernel, and then restart the host.
      The following commands require internet access or a local mirror of operating system packages.
      yum makecache fast && yum update kernel && reboot
    4. Log in as root, or as a user with superuser privileges.
    5. Enable automatic start of serviced.
      systemctl enable serviced
  5. Identify the name of the LVM thin pool for Docker.
    docker info 2>/dev/null | grep 'Pool Name'
    Example result:
     Pool Name: docker-docker--pool

    Record the name for use in a subsequent step.

  6. Back up the Docker environment file.
    test -f /etc/sysconfig/docker \
      && mv /etc/sysconfig/docker /etc/sysconfig/docker.bak
  7. Stop the Docker service.
    systemctl stop docker
  8. Remove Docker 1.9.0.
    1. Remove without checking dependencies.
      rpm -e --nodeps docker-engine-1.9.0
    2. Clean the yum databases.
      yum clean all
  9. Install Docker CE 17.09.0.
    yum install --enablerepo=zenoss-mirror docker-ce-17.09.0.ce
    If yum returns an error due to dependency issues, see Resolving package dependency conflicts for potential resolutions.