Docker Community Forums

Share and learn in the Docker community.

Application doesn't open on network and external url

When running a container, it doesn’t show anything on the address given.

FROM python:3.8
COPY . /app
RUN apt-get update
&& \ apt-get install ffmpeg libsm6 libxext6 -y
RUN pip3 install --upgrade pip
RUN pip3 install -r requirements.txt
CMD streamlit run

This is the docker file. I am running the command

docker run -t -p 8501:8501 age_gender:1.0

It gives the output as

You can now view your Streamlit app in your browser.
Network URL:
External URL:

But the addresses show nothing. Any help is appreciated

When I open localhost:8501, the application works fine.