How to install docker specific version

后端 未结 8 1256
半阙折子戏
半阙折子戏 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:56

    Another option is to replace install -y lxc-docker in the script with install -y lxc-docker-.

    For example, this will install docker 1.6.2:

    RUN wget -qO- https://get.docker.com/ubuntu/ | sed -r 's/^apt-get install -y lxc-docker$/apt-get install -y lxc-docker-1.6.2/g' | sh
    

提交回复
热议问题