How to inspect a running Docker container

I’ve started a Docker container with tutum/lamp image with this command:

docker run -d -P --name design_patterns -v /public_html:/app tutum/lamp

  • Pycharm not showing all files from django external library
  • Docker ubuntu 16.04 container 64-bit run 32-bit applications
  • Letsencrypt + Docker + Nginx
  • Docker: executng commands with non-root user inside container
  • How to set PGOPTIONS when starting Postgres using docker-compose
  • What is driver name of docker for mac?
  • As you can see, I mounted my local folder /public_html to /app directory in the container.

    Having started this container, I realized that PHP files that are present in /public_html are not accessible from the browser. I should have probably mounted my local folder to a different location in the container.

    How can I inspect the running container to check where my local data should be loaded?

  • Docker-compose set user and group on mounted volume
  • Why does docker see the container is hitting the rss limit?
  • Docker: adding a file from a parent directory
  • Docker registry login fails with “Certificate signed by unknown authority”
  • How can I orchestrate the startup and re-starting of two interdependent docker containers?
  • Docker: Share the same .so library different containers without compiling into each
  • One Solution collect form web for “How to inspect a running Docker container”

    you can do 2 things:

    docker inspect design_patterns

    will show you some info about the running container

    or just get into the container

    docker exec -it design_patterns bash

    this will drop you into a bash shell into the container, then you can inspect the current state with regular bash commands

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.