How to install docker specific version

后端 未结 8 1336
半阙折子戏
半阙折子戏 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条回答
  •  旧时难觅i
    2021-01-30 18:04

    Follow below step to install specific version of docker-ce and docker-ce-cli .

    curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
    sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
    sudo apt-get update
    

    Find the specific version of docker-ec and docker-ce-cli . Her in this example i am looking for 19.03

    apt-cache policy docker-ce | grep 19
    apt-cache policy docker-ce-cli | grep 19
    

    From above command you will get list of docker version , copy respected version.

    apt-get install docker-ce=5:19.03.14~3-0~ubuntu-bionic docker-ce-cli=5:19.03.14~3-0~ubuntu-bionic 
    

提交回复
热议问题