docker-wordpress icon indicating copy to clipboard operation
docker-wordpress copied to clipboard

What's the best way to import an existing wordpress with your docker-wordpress ?

Open morgan-np opened this issue 1 year ago • 1 comments

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

morgan-np avatar Mar 12 '24 22:03 morgan-np

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.

TrafeX avatar Apr 04 '24 18:04 TrafeX

I'm closing this issue due to inactivity. Let me know if you have any questions!

TrafeX avatar Oct 20 '24 08:10 TrafeX