Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
morgan-np opened this issue Mar 12, 2024 · 1 comment

Comments

@morgan-np
Copy link

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

@TrafeX
Copy link
Owner

TrafeX commented Apr 4, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants