10. port binding

01

first check and stop any containers running

start a new container and includ -p 'port' flag, docker runs on 80 but assign it to any local host port.

docker run -d -p 9000:80 nginx:1.23-alpine

1.23-alpine somewhere here https://hub.docker.com/_/nginx

open local host 900 on a browser

http://localhost:9000/

Standard Practice use same host on your local as the app like docker

02

You can see what port the container is running on in

docker ps
**pic from 42:29 video, click this step then tutorila img top right

03

same with running logs

You can see the GET request from our mac

docker logs
**pic from 43:00 video, click this step then tutorila img top right