How to install docker specific version

后端 未结 8 1237
半阙折子戏
半阙折子戏 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 18:07

    As Docker Introduces two different flavors (CE and EE) the best and easy way of installing Docker on any system. please run the below command and you do not have to do any thing.

    wget -qO- https://get.docker.com/ | sh
    

    if you want to install a specific version of a docker, you can run below command to find what all version of docker is present.

    apt-cache madison docker-ce #(for ubuntu)
    yum list docker-ce.x86_64  --showduplicates | sort -r #(for centos)
    

    then select the proper version and place it in below command.

    wget -qO- https://get.docker.com/ | sed 's/docker-ce/docker-ce=

提交回复
热议问题