How to install docker specific version

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

    I got version 1.6.2 years old from source on Ubuntu 16.04. This might not translate to other Docker versions:

    1. git clone https://github.com/moby/moby docker

    2. cd docker

    3. git tag -l -- find your tag of interest in this list (e.g. v1.6.2)

    4. git checkout

    5. sudo make build

      Depending on how old your version is, you might see some errors in this step. If you see sample docker images failing to get pulled in, feel free to comment the associated lines out in the Dockerfile. You might see a lvm2 source related failure. Modify the non-existent link to the source specified here. Specifically, in my case, I had to change make Dockerfile refer to the lvm2 source code at git at git://sourceware.org/git/lvm2.git .

    6. sudo make binary

提交回复
热议问题