title: Where is my Docker Wordpress Website Storing Data?
body: <p>I currently have a Wordpress container set up in Docker, and have it linked to a MySQL database on the same machine (that is <strong>not</strong> in a Docker container). I played around with editing the website in my browser, deleting the Wordpress container, and creating a new one linked to the same database.</p>
  
  <p>When I did this, the sample posts I made on my website persisted, so I assumed my data was being stored by my database locally. However, I then tried setting up multiple websites using Wordpress Multisite using one Wordpress container. To do this, I had to edit the Wordpress config file inside the Wordpress container.</p>
  
  <p>I deleted this container, and created a new one like before. I tried replicating the config changes in this container, however, when I navigate to my website, it just gives me a white screen. This leads me to think that the MySQL database is pointing to empty tables all of a sudden.</p>
  
  <p>Where are my Wordpress templates/info actually being stored? </p>
  
  <p><strong>EDIT</strong>: Below is the command I run</p>
  
  <pre><code>sudo docker run -p 80:80 --name wordpress_local -e WORDPRESS_DB_HOST=(machine's IP address) -e WORDPRESS_DB_USER=user -e WORDPRESS_DB_PASSWORD=password -d wordpress
  </code></pre>
  
  <p>Note:  This is assuming I have a local MySQL database set up that accepts connections from <code>0.0.0.0</code> and has a user called <code>user</code> with password <code>password</code></p>
  
  <p>I know that my container is properly linking to the database from looking at the logs (and the fact that I can access the website--just get a blank page)</p>
  
  <p><strong>EDIT 2</strong>: Looking at my Wordpress container filesystem, I can navigate different folders and do see content such as themes/plugins that I have installed. Why is this not being stored on my local machine? (Sorry if this is a dumb question--I am new to both MySQL and Docker)</p>