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

  • Docker: running application with a remote X-server
  • Typo3 Neos performance for css and js
  • Should I make a service for shared Docker dependencies?
  • Docker expose link to host machine
  • docker how do I make host scripts available inside a container
  • Advantages/Disadvantages of Running Jenkins Slaves for Dev/Test/Prod?
  • 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?

  • Bitbucket Pipelines. Cannot specify windowsservercore docker image
  • Starting Consul in docker does not expose http ports
  • Managing multiple GPUs with multiple users
  • Node-inspector in docker does not load sources
  • Mesos/Marathon Memory usage limits for Docker
  • What is the best practice of docker + ufw under Ubuntu
  • 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.