Is there a docker-config file to achieve this? Or any tutorials that help you achieve this goal? Or maybe a run down of how to do it?
I was using the official wordpress image and the default configuration and then tried copying the wp-content directory to the wordpress folder which was added as a volume in the docker-config file. I did the same with the db. But this doesn’t work.
The only thing that I got working was creating a wordpress site like this and then using Updraft plugin to restore a live version of the site, but the theme did not change except for the db, and the links were all leading to the live version instead of the local version.
[ad_2]
The only thing you need to migrate a WP site is /wp-content/* and the DB (in the form of an SQL file). How that works with Docker, I have no idea, because I’ve never used it – it seems to me that it makes something harder than it needs to be.
Check out the WPVivid plugin – makes it dead simple to migrate a site from one location to another.