Docker Community Forums

Share and learn in the Docker community.

Cannot install a specific version; Version: 18.06.2; 'docker-ce-cli : Breaks: docker-ce (< 5:0) but 18.06.2~ce~3-0~ubuntu is to be installed’

I’m following the step #3 in this doc:

I looked up valid version strings for docker-ce and docker-ce-cli

I gave this command:
root@kube-node2:/home/osboxes# sudo apt-get install docker-ce=18.06.2~ce~3-0~ubuntu docker-ce-cli=5:18.09.2~3-0~ubuntu-bionic
Reading package lists… Done
Building dependency tree
Reading state information… Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 docker-ce-cli : Breaks: docker-ce (< 5:0) but 18.06.2~ce~3-0~ubuntu is to be installed
E: Unable to correct problems, you have held broken packages.

How can I find the docker-ce-ci version that’s compatible with my chosen version of docker-ce?

Let me guess, you need a specific docker version for a kubernetes installation :slight_smile:
Last time I installed docker-ce for a kubeadm installation, it was sufficient to just pinpoint the docker-ce version.

You are aware that you try to use different versions on docker-ce and docker-ce-cli?