Simon:
Hey guys, How can I open a web browser from a host? (DEMO – CREATING A NEW DOCKER IMAGE at 5:52)
Sohaib Msalha:
open the terminal and type firefox then hit enter, I hope this will be helpful
Sohaib Msalha:
@Simon
- This browser in the docker host machine, or in your own device?
- Are you sure the container was running when you tried to access the web portal?
Simon:
I don’t know the difference between docker host machine and my device. That’s why I asked a question.
Sohaib Msalha:
Are using VM to practice docker?
or you using the docker desktop app?
Simon:
I am using WSL and docker desktop
Sohaib Msalha:
In this case the docker host is your machine, and the portal should be accessible here
Let’s give it a try,
run the needed container on detached mode and then hit the following command :
docker inspect <container_id> | grep -i ipaddress
Simon:
Dear Sohaib, I am sorry, I need to leave now, but I will come back later. Thanks for your help.
Sohaib Msalha:
No worries, feel free to slack me I am glad I could help
Simon:
For sure, I appreciate it. Thank you so much.