sudo docker inspect my-nginx my-nginx是容器的名字,也可以用容器id, 可以使用sudo docker ps -a查看 sudo docker run --name my-nginx -v /var/www/html:/usr/share/nginx/html -d -p 8080:80 nginx ➜ sudo docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 98ecfd3429be nginx "/docker-entrypoint.…" 20 seconds ago Up 20 seconds 0.0.0.0:8080-
|