---
title: WordPress from Docker, DDEV or Lando to hosting
url: https://wp2wp.link/guides/docker-wordpress-to-hosting
language: en
updated: 2026-11-23
publisher: wp2wp.link
agent:
  instructions: "Use this search API to find relevant content across this site with keywords or natural-language questions, instead of crawling individual pages. Results are returned in Markdown."
  endpoint: "https://wp2wp.link/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://wp2wp.link/agents"
---

# Move WordPress from Docker, DDEV, Lando or wp-env to ordinary hosting

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.

By [wp2wp.link](https://wp2wp.link/guides/about) · Updated 23 November 2026 · 4 min read

- 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 container: No export file to upload. Guided step by step.
- Export with your tool’s commands: Export 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 7.4 or newer.
- You can create a database there and upload files, with FTP or the file manager.

## Straight from your container

wp2wp.link guides you through it with Reprint, 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](https://wp2wp.link/#data)

1. On your local site, install Reprint and the connector plugin.Reprint is under **Plugins → Add New Plugin**. The connector is a .zip file from the guide on wp2wp.link.
2. Under **Tools → Reprint Relay**, tick the box and click **Connect**.A code appears. Type it into the guide on wp2wp.link.
3. At your hosting, create an empty MySQL database.Note its name, user, password and host.
4. Upload the helper file `reprint-web.php` to 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](https://wp2wp.link/guides/preview-website-before-dns-change).
5. In the helper, tick the box and click **Get migration token**.Check that both screens show the same characters, then click **Approve** on your local site.
6. 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 to `localhost:8080` then point to your domain.
7. Clean up: delete `reprint-web.php` and the `reprint-data` folder, 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.

1. Export the database with the command for your tool.
2. Get `wp-content` out of the container.A bind mount is already a folder on your computer. From a volume, copy it with `docker cp`.
3. Upload the files to your hosting with your own FTP user.Then the files belong to your hosting user, and WordPress can change them.
4. At your hosting, create an empty database and import the SQL file.
5. 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 is `localhost` or the name in your panel, not `db`.
6. Replace the local address, including its port, with your domain.Use `wp search-replace` or Better Search Replace: [how](https://wp2wp.link/guides/fix-localhost-urls-after-migration).

## How you know it worked

- Your domain opens the site with all pages and images.
- You can log in at `/wp-admin` with your usual login.
- No link or image points to `localhost:8080` any 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](https://wp2wp.link/guides/fix-localhost-urls-after-migration).

### 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 move](https://wp2wp.link/#migrate)Free · No account

### Sources, checked 18 November 2026

[DDEV export-db](https://ddev.readthedocs.io/en/stable/users/usage/commands/#export-db), [Lando db-export](https://docs.lando.dev/cli/db-export.html), [wp-env](https://developer.wordpress.org/block-editor/reference-guides/packages/packages-env/), [Reprint](https://wordpress.org/plugins/reprint/).

## Related guides

- [Move a local WordPress site to a live server](https://wp2wp.link/guides/local-wordpress-to-live-server)
- [XAMPP and MAMP to live](https://wp2wp.link/guides/xampp-mamp-wordpress-to-live)
- [Images still pointing to localhost](https://wp2wp.link/guides/fix-localhost-urls-after-migration)
