Oleksii Chekulaiev
Oleksii Chekulaiev

Reputation: 401

Error checking TLS connection with Docksal

I'm getting this error when trying to start Docksal machine with fin up or fin vm start

Error checking TLS connection: Error checking and/or regenerating the certs:
There was an error validating certificates for host "192.168.64.100:2376": 
dial tcp 192.168.64.100:2376: getsockopt: connection refused 
You can attempt to regenerate them using 'docker-machine regenerate-certs [name]'. 
Be advised that this will trigger a Docker daemon restart which will stop running containers.

Upvotes: 1

Views: 634

Answers (3)

froboy
froboy

Reputation: 115

I think this warrants its own answer. As mentioned in the thread Cisco AnyConnect is (possibly permanently) in conflict with Docker. OpenConnect is meant to be a drop-in replacement for AnyConnect and seems to work well.

I've tested this with docksal and it seems to be working. Process:

  • Install OpenConnect and get connected
  • fin vm restart
  • fin project restart

That got things working for me.

Upvotes: 1

Oleksii Chekulaiev
Oleksii Chekulaiev

Reputation: 401

Sometimes docker-machine certificaties re-generation fails.

Usually it is solved with fin vm restart.

If simple restart did not help try:

fin docker-machine regenerate-certs -f
fin vm restart

However in rare cases this does not help too. If that does not help either you will have to delete existing Docksal VM and re-create it.

fin vm remove
fin system start

Upvotes: 1

ognockocaten
ognockocaten

Reputation: 864

I just ran into this issue - it was caused by being connected to a VPN. Try disconnecting from the VPN. (Source)

Upvotes: 0

Related Questions