How to install docker specific version

后端 未结 8 1266
半阙折子戏
半阙折子戏 2021-01-30 17:34

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.

<
8条回答
  •  花落未央
    2021-01-30 17:45

    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-
    

    to see list of available docker versions.

提交回复
热议问题