Exploring Docker container's file system
@lebyy▲ 0 net votes
Problem: I've noticed with docker that I need to understand what's happening inside a container or what files exist in there. One example is downloading images from the docker index - you don't have a clue what the image contains so it's impossible to start the… Fix (from the top answer): Here are a couple different methods... 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…