docker-wordpress
docker-wordpress copied to clipboard
What's the best way to import an existing wordpress with your docker-wordpress ?
Hi Tim,
Sorry in advance, i'm quite new at docker stuff.
I wuld like to know what's the best way to import an existing wordpress with your docker hub. Modify the Dockerfile to add a custom-db.sh which will import the database and modify few stuff or use wp-cli that you installed in it ?
Regards,
Morgan
Hi @morgan-np,
You should use wp CLI to export and import the whole website. You should do that when the container is already running, so not in the Dockerfile, but just by going into the container when it runs.
I'm closing this issue due to inactivity. Let me know if you have any questions!