Wednesday, April 20, 2016

Updating Docker Version

1. Check your current version,
  #docker -v

Right now we are at version 1.6.2

2. Update package information, and ensure that APT works with the https method
# apt-get update
# apt-get install apt-transport-https ca-certificates

3. First we need to add the docker repo key to our local apt key chain.  That is where we will get new version from.
For this lets add new GPG key,
#  apt-key adv --keyserver hkp:// --recv-keys 

4. Now let's add an entry for your Ubuntu operating system.

# echo deb ubuntu-trusty main    > /etc/apt/sources.list.d/docker.list

5. Now let's sync with our new repo by 
# apt-get update

6.Verify that APT is puling from the right ripository
# apt-cache policy docker-engine

7. Now let's update APT package index
# apt-get update
And then install docker 
# apt-get install docker-engine

8. Now notice the version of docker
  # docker -v

9. Amazing!! You just updated your docker to latest version in just six steps. Now start playing with it.  However, before you go any deeper with docker, I would recommend you to do some configurations. I have put those information in another guide 'Docker Optional Configurations'. Even though I have named it as optional, I suggest you take it as mandatory. 

No comments:

Post a Comment