I have started a confd server in a container. I can see that the confd server is up and running. I am also able launch the CLI session on the default example port 4565 inside the container using the docker exec command. In the docker file i have exposed the port 4565 and also i have started the container by exposing the port 4565 to the host by using the -p option in docker run. But when i try to launch a confd_cli session from the host to connect to the confd server running in the container , i keep getting the error Failed to connect to server. I have followed the steps suggested in your confd user guide for docker/container.
Please note: docker ps shows the container is up and running and it shows the exposed tcp port 4565. Also netstat -auntp shows the port 4565 is in listening mode.
Can you please suggest what am i missing because of which i am not able to connect to confd server from the host machine.