Machine: Error when provisioning for Ubuntu Server 20.04 "Focal"

Created on 25 Apr 2020  路  6Comments  路  Source: docker/machine

Caused by no focal distro in https://download.docker.com/linux/ubuntu/dists/

Running pre-create checks...
Creating machine...
(machine) Launching instance...
Waiting for machine to be running, this may take a few minutes...
Detecting operating system of created instance...
Waiting for SSH to be available...
Detecting the provisioner...
Provisioning with ubuntu(systemd)...
Installing Docker...
Error creating machine: Error running provisioning: error installing docker: 
Error running "sudo apt-get update": ssh command error:
command : sudo apt-get update
err     : exit status 100
output  : Get:1 http://us-west-2.ec2.archive.ubuntu.com/ubuntu focal InRelease [265 kB]
Get:2 http://us-west-2.ec2.archive.ubuntu.com/ubuntu focal-updates InRelease [89.1 kB]
Hit:3 http://us-west-2.ec2.archive.ubuntu.com/ubuntu focal-backports InRelease
Hit:4 http://security.ubuntu.com/ubuntu focal-security InRelease
Ign:5 https://download.docker.com/linux/ubuntu focal InRelease
Err:6 https://download.docker.com/linux/ubuntu focal Release
  404  Not Found [IP: 99.86.32.108 443]
Reading package lists...
E: The repository 'https://download.docker.com/linux/ubuntu focal Release' does not have a Release file.

All 6 comments

I don't think this is an issue with docker-machine. Docker did not yet provide a build for Ubuntu 20.04 LTS (Focal Fossa), see https://download.docker.com/linux/ubuntu/dists/

Arguably, the issue is that docker-machine does not provide you with a friendlier (and earlier?) error.

Finally, the build for 20.04 is in! See https://download.docker.com/linux/ubuntu/dists/focal/

Well, now we have a bug!

Running pre-create checks...
Creating machine...
(test-ubuntu-focal) Creating SSH key...
(test-ubuntu-focal) Assuming Digital Ocean private SSH is located at ~/.ssh/id_rsa
(test-ubuntu-focal) Creating Digital Ocean droplet...
(test-ubuntu-focal) Waiting for IP address to be assigned to the Droplet...
Waiting for machine to be running, this may take a few minutes...
Detecting operating system of created instance...
Waiting for SSH to be available...
Detecting the provisioner...
Provisioning with ubuntu(systemd)...
Installing Docker...
Error creating machine: Error running provisioning: error installing docker: 

The communication ends here, sir!

Yeah, same as mine, no? The second code block in my OP is from digging around.

It was still probably an issue with the upstream Focal packages from docker, because now it started to work with not change to docker-machine:

docker-machine create --driver digitalocean --digitalocean-access-token dontlookdontlook --digitalocean-image ubuntu-20-04-x64 --digitalocean-size s-2vcpu-2gb --digitalocean-region lon1 myhostname
Running pre-create checks...
Creating machine...
(pen16) Creating SSH key...
(pen16) Creating Digital Ocean droplet...
(pen16) Waiting for IP address to be assigned to the Droplet...
Waiting for machine to be running, this may take a few minutes...
Detecting operating system of created instance...
Waiting for SSH to be available...
Detecting the provisioner...
Provisioning with ubuntu(systemd)...
Installing Docker...
Copying certs to the local machine directory...
Copying certs to the remote machine...
Setting Docker configuration on the remote daemon...
Checking connection to Docker...
Docker is up and running!
To see how to connect your Docker Client to the Docker Engine running on this virtual machine, run: docker-machine env myhostname

I think this issue is still a "not a bug" and can be closed, after all :)

Ok, I agree that it's fixed now, but as you said it would be nice if it "provide you with a friendlier (and earlier?) error."

It seems like there's nothing following the colon in error installing docker:

Was this page helpful?
0 / 5 - 0 ratings