Apparently, it’s a personal lab, so we need additional information. I’m not familiar with streamlit, but apparently he starts the app on port 8501. I don’t know where 8502 is coming from. The port in the container should be 8501.
The right syntax should be :
docker run -p <machine_host_ip_addr>:8501:8501
or
docker run -p 8501:8501
On the first, you’ll access to the app with the link <machine_host_ip_addr>:8501
On the second, you can access with localhost:8501 and <machine_host_ip_addr>:8501