O'Reilly logo

Build Your Own PaaS with Docker by Oskar Hane

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Exploring the contents of a data volume container

Is the data being written to the data volume container? Or, is the data stored inside the MySQL and WordPress containers when connected? How can you tell?

One way to determine this is to enter a container via a shell so that you can navigate around its filesystem. Since version 1.3, Docker has the ability to start a new instance of a container's shell. Running the old docker attach command just gets you in the current shell instance, which in our case has tail –f /dev/null running. If we exit this tail command, the container will exit and shut down. Therefore, we need a new shell instance in a running container so that we can invoke any commands we want inside the container without the risk of the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required