Container connection issue

Hi Team,
I am facing issue with Lab 41 of “100 Days of Devops” Challenge . I am not able to connect the container if I curl it from the jump host . I have not mapped the host port with container port as I am not able to find out the available host ports through netstat command . Pls let me know how to find out the list of available ports . I have applied the command <docke run -d -p 8083 test> . THe container spined off and a host port was assigned and mapped with 8083(container port) automatically and I used this port to connect to the container . Kindly help.

Regards, Pranav


You have port 8087 configured, but the question asks for 8083.
You can run and exec into your image and test.

Here’s what I did:

docker run --name myapache -d -p 6300:6300 apache_image:1.0