Installing and configuring Docker on CentOS

To create a virtual machine using VMware Workstation or VirtualBox, install CentOS 6.6 or 6.7.

Follow these steps to use CentOS 6.7 to run Docker. In CentOS 6.x, there was a minor issue of a package name conflict with a system tray application and its executable, so the Docker RPM package was called docker-io.

  1. Let's install docker-io:
    [root@localhost Desktop]# yum install docker-io
    Loaded plugins: fastestmirror, refresh-packagekit, security
    Setting up Install Process
    Loading mirror speeds from cached hostfile
     * epel: ftp.riken.jp
    Resolving Dependencies
    --> Running transaction check
    ---> Package docker-io.x86_64 0:1.7.1-2.el6 will be installed
    --> Processing Dependency: lxc for package: docker-io-1.7.1-2.el6.x86_64 ...

Get DevOps for Web Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.