Service inside container not receiving requests

72 Views Asked by At

I am running a container with :

docker run --env-file .env <container_id> -p 0.0.0.0:8080:8080

The service inside the container is a python flask service, built with the library connexion, and listening on 0.0.0.0:8080.

When I docker ls, the column PORTS shows 8080/tcp, and I am not able to request the service, eg from swagger.

How can I request the service successfully ? Is 8080/tcp in the PORTS column means that my container is not bind to any port on the host machine ?

0

There are 0 best solutions below