Need help? Call us on 1300 789 260

How to Install Docker 1.6 on CentOS 7

Difficulty: Intermediate

Prerequisites

  • Root access to your VPS

Overview

This article will step you through the process of installing Docker and then upgrading it to Docker 1.6.

You can also find the basic details in the official Docker installation guide here .

Note: It's recommended that you only run this on a new server and not an existing server.

Instructions

  1. Login as the root user to your server.
  2. Install the default version of Docker (1.5):
    yum install docker
    
  3. Set Docker to start on boot:
    systemctl enable docker
  4. Ensure Docker isn't running:
    systemctl stop docker
    
  5. Download and install the new version of docker:
    wget https://get.docker.com/builds/Linux/x86_64/docker-latest -O /usr/bin/docker

    This will download the latest Docker binary and replace the existing one.

  6. Once the download is complete, start the new version of Docker:
    systemctl start docker
    
  7. Check that Docker is running and that the version displays 1.6 for both the server and client:
    docker version

    You should see an output like this:

    Client version: 1.6.1
    Client API version: 1.18
    Go version (client): go1.4.2
    Git commit (client): 97cd073
    OS/Arch (client): linux/amd64
    Server version: 1.6.1
    Server API version: 1.18
    Go version (server): go1.4.2
    Git commit (server): 97cd073
    OS/Arch (server): linux/amd64
  8. Your new version of Docker is ready to go!
Was this article helpful? Yes No
👥

Having trouble? We’re here to help!

We’ve built our company with a serious focus on quality service. Feel free to give us a call!

1300 789 260