Move WordPress from Docker, DDEV, Lando or wp-env to ordinary hosting
Short answer
Copy the files (mostly wp-content) and the database to your hosting, then replace the local address with your domain. Export both with your tool’s commands, or let wp2wp.link copy the running site straight over.
- Result
- Your site runs at your domain
- Your time
- About 15 minutes
- Cost
- Free, up to 50 GB per move
- Your hosting
- Needs no Docker
Which way fits you?
- Straight from your containerEasiestNo export file to upload. Guided step by step.
- Export with your tool’s commandsExport the database, upload, then replace the address. For people who know the tools.
Before you start
- Your stack runs and you can log in to the site as admin.
- Your hosting has PHP The programming language WordPress runs on. Hosting plans let you choose the PHP version. 7.4 or newer.
- You can create a database there and upload files, with FTP and SFTP The usual way to copy files to your web space with a program such as FileZilla. SFTP is the encrypted version. or the File manager A page in your hosting panel (cPanel, Plesk or your host’s own) where you can upload, edit and delete files in your browser, without an FTP program..
Straight from your container
wp2wp.link guides you through it with Reprint A free, open-source plugin on WordPress.org that copies a WordPress site to another place. wp2wp.link guides you through a move with it., the free copy plugin from WordPress.org.
Your data: your site passes through our server while it is copied. We don’t store it, but we could read it. For sites with confidential data, export and upload by hand. What happens with your data
On your local site, install Reprint and the Connector plugin A small WordPress plugin from wp2wp.link. You need it only when your site is on your computer. You install it there next to Reprint..
Reprint is under Plugins → Add New Plugin. The connector is a .zip file from the guide on wp2wp.link.
Under Tools → Reprint Relay, tick the box and click Connect.
A code appears. Type it into the guide on wp2wp.link.
At your hosting, create an empty Database (MySQL, MariaDB) Where WordPress keeps your posts, pages, settings and users. The files hold the theme, plugins and uploads. A move needs both. database.
Note its name, user, password and host.
Upload the Helper file The file reprint-web.php from wp2wp.link. You upload it into your domain’s folder at the new host and open it in your browser.
reprint-web.phpto your domain’s folder and open it.The guide gives you the file and its password. Your domain doesn’t lead there yet? Use a temporary address.
In the helper, tick the box and click Get migration token.
Check that both screens show the Characters to compare A short row of letters and digits. When you move a site from your computer with wp2wp.link, your old site and the helper on your new hosting both show it., then click Approve on your local site.
In the helper, enter the database details and click Start migration.
Keep the stack running until it is done. The helper writes the real database details into
wp-config.php, and links tolocalhost:8080then point to your domain.Clean up: delete
reprint-web.phpand thereprint-datafolder, then click Disconnect.
Export with your tool’s commands
This works like any local site, with a few extra details for containers.
| Tool | Database export | Files |
|---|---|---|
| Docker Compose | docker compose exec db mysqldump -u root -p wordpress > db.sql | Bind mount, or copy out of the volume with docker cp |
| DDEV | ddev export-db --file=db.sql.gz | Project folder |
| Lando | lando db-export db.sql | Project folder |
| wp-env | npx wp-env run cli wp db export | Mapped plugin and theme folders. Uploads are inside the container |
Service names (db, cli) and the database name depend on your setup.
Export the database with the command for your tool.
Get
wp-contentout of the container.A bind mount is already a folder on your computer. From a volume, copy it with
docker cp.Upload the files to your hosting with your own FTP user.
Then the files belong to your hosting user, and WordPress can change them.
At your hosting, create an empty database and import the SQL file.
Put real values into
wp-config.php.Docker images often fill it from variables like
WORDPRESS_DB_HOST, which hosting doesn’t have. The database host islocalhostor the name in your panel, notdb.Replace the local address, including its port, with your domain.
Use
wp search-replaceor Better Search Replace: how.
How you know it worked
- Your domain opens the site with all pages and images.
- You can log in at
/wp-adminwith your usual login. - No link or image points to
localhost:8080any more.
If something goes wrong
The site can’t connect to the database
wp-config.php still expects Docker’s variables or the service name db. Enter the real database name, user, password and host from your hosting panel.
Links still contain localhost:8080
A site at http://localhost:8080 stores the port in its links. Replace the full old address, with the port: how.
Images are missing after a wp-env export
With wp-env, uploads are inside the container, not in your mapped folders. Copy them out as well, or copy the running site with wp2wp.link.
The host can’t write to the uploaded files
Files made in the container can belong to another user. Upload them again with your own FTP user.
Questions
Does it work with DDEV, Lando and wp-env?
Yes. They all run normal WordPress with PHP. That is all Reprint and the connector need.
Does the copy sync changes back to my container?
No. The copy goes one way, from your container to the hosting.
Can I move a Multisite network this way?
Not a whole network. Reprint copies single sites.
wp2wp.link guides you from your container to your hosting, step by step.
Start your moveFree · No account
Sources, checked 18 November 2026
Was this page helpful?
Thanks for letting us know.
Thanks for letting us know. What was missing or wrong? Write to benni@wp2wp.link, we read every message.