docker exec


docker exec CONTAINER_ID pwd
docker exec nginx nginx -t

进入交互shell

docker exec -it CONTAINER_ID bash