9951 explained code solutions for 126 technologies


dockerHow to publish port to docker container


docker run -it -p 81:80 nginxctrl + c
docker run

launch docker container

-it

connect to container CLI right after launch

-p

publish specified ports

81

port of local machine (docker host)

80

port of container to forward to specified local machine port

nginx

name of the image to launch container from