How to install docker specific version

后端 未结 8 1240
半阙折子戏
半阙折子戏 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=<DOCKER_VERSION/' | sh
    
    0 讨论(0)
  • 2021-01-30 18:09
    wget -qO- https://get.docker.com/ | sed 's/lxc-docker/lxc-docker-1.6.2/' | sh
    

    Replace 1.6.2 with the version you want.

    0 讨论(0)
提交回复
热议问题