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 ...