Play with Docker

reference 1

Getting Started

The command you just ran

sudo docker run -dp 80:80 docker/getting-started

ou'll notice a few flags being used. Here's some more info on them

-d - run the container in detached mode (in the background)
-p 80:80 - map port 80 of the host to port 80 in the container
docker/getting-started - the image to use

猜你喜欢

转载自www.cnblogs.com/liyugeng/p/12461882.html