linux - Exploring Docker container's file system - Stack Overflow
docker ps
A) Use docker exec (easiest)
Docker version 1.3 or newer supports the command exec
that behave similar to nsenter
. This command can run new process in already running container (container must have PID 1 process running already). You can run /bin/bash
to explore container state:
docker exec -t -i mycontainer_id /bin/bash
Không có nhận xét nào:
Đăng nhận xét