Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
catap opened this issue Jan 10, 2022 · 0 comments
Open

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

catap opened this issue Jan 10, 2022 · 0 comments

Comments

@catap
Copy link

catap commented Jan 10, 2022

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:~$ 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant