rancher: Not able to connect to swarm using generated config.
Rancher Version:v1.0.0-rc3
Created a swam environment with 2 hosts. Go to Swarm->cli and do “Generate Config”. Follow the instruction provided for getting connected to swarm from local machine.
Not able to execute docker commands . Getting the following errors:
Sangeethas-MBP:.docker sangeethahariharan1$ export DOCKER_HOST=tcp://<ipaddress>:8080 DOCKER_TLS_VERIFY=1
Sangeethas-MBP:.docker sangeethahariharan1$ docker ps
An error occurred trying to connect: Get https://<ipaddress>:8080/v1.21/containers/json: x509: certificate is valid for 127.0.0.1, not <ipaddress>
Note - When rancher-server is ssl enabled , we are able to connect to swam client as expected.
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 3
- Comments: 19 (1 by maintainers)
Apologies to everyone. It looks as if it was working with the rancher server restart, but it’s currently no longer working. We are investigating it.
Note: This works in SSL setups of Rancher, so this is only if don’t have Rancher server set up with SSL.