E: Version '18.06.1~ce~3-0~ubuntu' for 'docker-ce-cli' was not found
Only way to get rid of the error was to not install docker-ce-cli
$ sudo apt-get install docker-ce=18.06.1~ce~3-0~ubuntu containerd.io
$ docker version
Client:
Version: 18.06.1-ce
API version: 1.38
Go version: go1.10.3
Git commit: e68fc7a
Built: Tue Aug 21 17:24:51 2018
OS/Arch: linux/amd64
Experimental: false
Server:
Engine:
Version: 18.06.1-ce
API version: 1.38 (minimum version 1.12)
Go version: go1.10.3
Git commit: e68fc7a
Built: Tue Aug 21 17:23:15 2018
OS/Arch: linux/amd64
Experimental: false
To my knowledge the docker-ce-cli package was introduced in Docker CE 18.09. Before that docker-ce does not have that as a dependency. You can check that by for example look into the Packages file for Ubuntu Bionic: https://download.docker.com/linux/ubuntu/dists/bionic/stable/binary-amd64/Packages
Cheers!