直接执行命令docker exec mynginx cat /etc/nginx/nginx.conf 进入容器交互docker exec -it 80nginx /bin/bash 转载于:https://www.cnblogs.com/CyLee/p/8358006.html