Mac OS – Docker Port Forward

Mac OS – Docker Port Forward

This article demonstrate how to run docker container and using localhost connect to your container in mac os environment.

First run a nginx container

docker-container-start

Browse to localhost

docker-first-try

Port Forward

  1. Open the virtualbox GUI tools
  2. Configure port forward from your mac os to your container 8080 to 80

docker-virtualbox

 

Browse localhost

docker-second-try

 

Write a Reply or Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.