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

 

Mac OS – Docker Port Forward

Leave a Reply

Your email address will not be published. Required fields are marked *

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