Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get docker release version - string required for installation

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) ?

like image 584
cool Avatar asked May 17 '26 03:05

cool


1 Answers

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

like image 102
Rumen Kyusakov Avatar answered May 20 '26 00:05

Rumen Kyusakov