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

  • If images in Docker are untagged, are they used at all or just orphans?
  • How can I get an interactive shell inside a Google datalab container?
  • npm commands fails in jenkins pipelines with docker
  • sed inline replacement not working from Dockerfile
  • How do i execute script in supervisor?
  • create jenkins image with docker
  • 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 image dns probem, name solve failed
  • Docker pull error: no space left on device
  • Docker Images Hierarchy
  • Providing host files for docker machine with cloud provider
  • Docker & Graylog
  • error in docker build publish plugin
  • 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.