Answers for "dockerfile EXPOSE"

6

docker expose port

docker run -p [external]:[Internal]

#example (will open in localhost:8080 to container port 80)
docker run -p 8080:80
Posted by: Guest on May-27-2020
0

dockerfile EXPOSE

# It does not publish the container's port, but DOCUMENTS the
# ports the container is listening to...

EXPOSE <port> [<port>/<protocol>...]
Posted by: Guest on June-16-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language