$ docker run --name web -d nginx
访问主机的8081的流量将流向nginx容器的80端口
$ docker run --name ngnix -d -p 8081:80 nginx
Last updated 4 years ago
Was this helpful?