Parallels / docker-machine-parallels

Parallels driver for Docker Machine https://github.com/docker/machine
MIT License
471 stars 35 forks source link

Can't use it anymore. Some certificate is expired? #107

Open catap opened 2 years ago

catap commented 2 years ago

I've created a brand new machine:

> docker-machine create --driver=parallels docker-prl
Running pre-create checks...
Creating machine...
(docker-prl) Copying /Users/catap/.docker/machine/cache/boot2docker.iso to /Users/catap/.docker/machine/machines/docker-prl/boot2docker.iso...
(docker-prl) Creating SSH key...
(docker-prl) Creating Parallels Desktop VM...
(docker-prl) Starting Parallels Desktop VM...
(docker-prl) Waiting for VM to come online...
(docker-prl) Mounting shared folder "/" ...
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 boot2docker...
Error creating machine: Error running provisioning: ssh command error:
command : sudo /usr/bin/sethostname docker-prl && echo "docker-prl" | sudo tee /var/lib/boot2docker/etc/hostname
err     : exit status 1
output  : Setting hostname to docker-prl Done.
sudo: tee: command not found

Any attempt to use it fails like this:

> docker-machine env docker-prl
Error checking TLS connection: Error checking and/or regenerating the certs: There was an error validating certificates for host "10.211.55.26:2376": x509: certificate signed by unknown authority
You can attempt to regenerate them using 'docker-machine regenerate-certs [name]'.
Be advised that this will trigger a Docker daemon restart which might stop running containers.
...

Attempt to regenerate certificate fails:

> docker-machine regenerate-certs docker-prl
Regenerate TLS machine certs?  Warning: this is irreversible. (y/n): y
Regenerating TLS certificates
Waiting for SSH to be available...
Detecting the provisioner...
ssh command error:
command : sudo /usr/bin/sethostname docker-prl && echo "docker-prl" | sudo tee /var/lib/boot2docker/etc/hostname
err     : exit status 1
output  : Setting hostname to docker-prl Done.
sudo: tee: command not found

Attempt to login also creates some errors:

> docker-machine ssh docker-prl
   ( '>')
  /) TC (\   Core is distributed with ABSOLUTELY NO WARRANTY.
 (/-_--_-\)           www.tinycorelinux.net

-bash: id: command not found
-bash: [: : integer expression expected
-bash: which: command not found
-bash: id: command not found
-bash: [: : integer expression expected
-bash: which: command not found
docker@docker-prl:~$