Docker Version Not Found During Install


#1

I’m running into the following issue trying to install on a fresh Ubuntu 18.04 instance (https://help.replicated.com/docs/swarm/customer-installations/installing/).

Is this a known issue? Is there a workaround?

$ curl -sSL -o install.sh  https://get.replicated.com/swarm-init
$ sudo bash ./install.sh
Determining service address
The installer was unable to automatically detect the service IP address of this machine.
Please enter the address or leave blank for unspecified.
Service IP address: 
Does this machine require a proxy to access the Internet? (y/N) N
Installing docker from https://get.replicated.com/docker-install.sh
+ sh -c apt-get update
Hit:1 http://archive.ubuntu.com/ubuntu bionic InRelease
Hit:2 http://archive.ubuntu.com/ubuntu bionic-updates InRelease                                                                                       
Hit:3 https://download.docker.com/linux/ubuntu bionic InRelease                                                              
Hit:4 http://archive.ubuntu.com/ubuntu bionic-backports InRelease                                                            
Hit:5 http://security.ubuntu.com/ubuntu bionic-security InRelease        
Reading package lists... Done                      
+ sh -c apt-get install -y -q apt-transport-https ca-certificates curl software-properties-common
Reading package lists...
Building dependency tree...
Reading state information...
ca-certificates is already the newest version (20180409).
curl is already the newest version (7.58.0-2ubuntu3).
software-properties-common is already the newest version (0.96.24.32.1).
apt-transport-https is already the newest version (1.6.1).
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
+ sh -c apt-key add -
+ curl -fsSl https://download.docker.com/linux/ubuntu/gpg
OK
+ sh -c add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable"
Hit:1 https://download.docker.com/linux/ubuntu bionic InRelease
Hit:2 http://security.ubuntu.com/ubuntu bionic-security InRelease                                                                                
Hit:3 http://archive.ubuntu.com/ubuntu bionic InRelease                                                               
Hit:4 http://archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit:5 http://archive.ubuntu.com/ubuntu bionic-backports InRelease
Reading package lists... Done
+ [ ubuntu = debian ]
+ sh -c apt-get update
Hit:1 https://download.docker.com/linux/ubuntu bionic InRelease
Hit:2 http://security.ubuntu.com/ubuntu bionic-security InRelease                                     
Hit:3 http://archive.ubuntu.com/ubuntu bionic InRelease                                               
Hit:4 http://archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit:5 http://archive.ubuntu.com/ubuntu bionic-backports InRelease
Reading package lists... Done
+ sh -c apt-get install -y -q docker-ce=17.06.2~ce-0~ubuntu
Reading package lists...
Building dependency tree...
Reading state information...
E: Version '17.06.2~ce-0~ubuntu' for 'docker-ce' was not found

#2

Yes, you can pre-install Docker, and then when you run the swarm-init script, use the no-docker param to skip the docker installation.


#3

Meanwhile, the installer runs fine on a fresh CentOS 7 instance, so I’m just going to roll with that. Thanks for the help!

For the record, in the Ubuntu instance, I followed @areed’s advice and made some progress. I added the specific version of docker manually using the steps from https://docs.docker.com/install/linux/docker-ce/ubuntu/#install-docker-ce-1. But that failed later while deploying the Replicated stack…

image