Reputation: 3505
Where we can find docker release string which is required if you want to specify version during the installation? Is there a list ... or maybe a patern which can use to construct this one?
I was not able to find this kind of info within documentation - nor on the web.
For example:
sudo apt-get install docker-ce
is going to install latest version of the docker-ce (at the moment of writing this it is 17.12). Having in mind that this version have few issues i want to avoid, i need to downgrade (read install) specific version.
We can do that with:
sudo apt-get install docker-ce=<VERSION_STRING>
where you can specify version string. Unfortunatelly, there is no any kind of info (at least i was not able to find), which lists specific version strings (release strings) which you can use.
For example, you can find the list of releases here. But if we check releases (versions) there and if we try to use them, it will not result with installation, instead it will throw an error.
Example:
sudo apt-get install docker-ce=17.09.0
is going to result with error message: "E: Version '17.09.0' for 'docker-ce' was not found".
Where we can find list of releases (strings) which can use for the installation? Or is there any kind of patern which we can use to construct these (like version~ce-0~system eg. 17.12.0~ce-0~debian) ?
Upvotes: 3
Views: 3574
Reputation: 51798
As specified in INSTALL DOCKER CE, you can install a specific version using:
sudo apt-get install docker-ce=<VERSION>
You can check the list of available versions via:
apt-cache madison docker-ce
The second column of the output specifies the version that you can substitute in the apt-get install
command.
Upvotes: 1
Reputation: 161
You can use apt-cache madison docker-ce
command.
The version string is in the second column.
Source: https://docs.docker.com/install/linux/docker-ce/ubuntu/#install-docker-ce-1
Upvotes: 2