dockerubuntu-14.04lxc-docker

How to install docker specific version


How to install specific version of Docker(like 1.3.2)?

I am unable to find any documentation in docker official docs. Referring this link for Ubuntu.

Following instructions install docker version 1.0.1: $ sudo apt-get update $ sudo apt-get install docker.io

Also, following instructions install latest version of docker 1.4.1: $ sudo sh -c "echo deb https://get.docker.com/ubuntu docker main > /etc/apt/sources.list.d/docker.list" $ sudo apt-get update $ sudo apt-get install lxc-docker How can I install specific version like 1.3.2?


Solution

  • Got the answer from this github issue comment.

    Summary of above commit:-

    echo deb http://get.docker.com/ubuntu docker main > /etc/apt/sources.list.d/docker.list
    
    apt-key adv --keyserver pgp.mit.edu --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9
    
    apt-get update
    apt-get install -y lxc-docker-1.3.3
    

    If permission issue then use sudo as:

    echo deb http://get.docker.com/ubuntu docker main | sudo tee /etc/apt/sources.list.d/docker.list
    
    sudo apt-key adv --keyserver pgp.mit.edu --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9
    
    sudo apt-get update
    sudo apt-get install -y lxc-docker-1.3.3
    

    Bonus Tip:

    Don't know which version? Then hit Tab after lxc-docker- as:

    sudo apt-get install -y lxc-docker-<Hit Tab here>
    

    to see list of available docker versions.