Title: Docker?
Last modified: October 7, 2024

---

# Docker?

 *  Resolved [magdamunro](https://wordpress.org/support/users/magdamunro/)
 * (@magdamunro)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/docker-3/)
 * When I try to install my backup made with Duplicator 1.5.9 in my freshly made
   Docker WordPress container, using bind, I can neither connect to localhost when
   doing the validation — Error: “Unable to connect the user **[db-user]** to the
   host **[localhost]**. The server error response was: _No such file or directory_‘“—
   nor to 127.0.0.1 — Error: “Unable to connect the user **[db-user]** to the host**[
   127.0.0.1]**. The server error response was: _Connection refused_‘ “.
   However,
   I can use the same credentials to connect locally through my OS (mac) with any
   DB app, or I can issue `docker exec -it` from Docker Desktop and connect through
   the CLI. I can create and see tables no problem. If I instead use wordpress (
   another build) as is it works just as fine. But duplicator does not. I do make
   sure to delete everything for each run.in the dup-installer-log… file you can
   read pretty much the same thing, except it also states under “INSTALLER ERROR:”
   that “DATABASE: NULL”, which is surprising given I’ve supplied that. The same
   is true for both “127.0.0.1” as well as “localhost”. What can be done?

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Support [mohammedeisa](https://wordpress.org/support/users/mohammedeisa/)
 * (@mohammedeisa)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/docker-3/#post-18066138)
 * Hi [@magdamunro](https://wordpress.org/support/users/magdamunro/),
 * We understand that you’re facing an issue that requires further investigation,
   and it may involve sharing log files containing sensitive information about your
   website. Unfortunately, such sharing is not allowed in WordPress.org forums for
   security reasons.
 * To ensure your privacy and get the necessary support, kindly contact us through
   the form on our Contact Us page, and we’ll be more than happy to assist you promptly:
 * [https://duplicator.com/contact/?form=1](https://duplicator.com/contact/?form=1)
 * Looking forward to hearing back from you.
 * Thanks!
 *  Plugin Support [mohammedeisa](https://wordpress.org/support/users/mohammedeisa/)
 * (@mohammedeisa)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/docker-3/#post-18075056)
 * Hi [@magdamunro](https://wordpress.org/support/users/magdamunro/) ,
 * I’m closing this support topic for inactivity. Please don’t hesitate to contact
   us in a [Support Topic](https://wordpress.org/support/plugin/duplicator/) if 
   you need any help with Duplicator.
 * Thanks! 
 *  Thread Starter [magdamunro](https://wordpress.org/support/users/magdamunro/)
 * (@magdamunro)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/docker-3/#post-18075104)
 * I’m afraid I gave up. This is either my fault, in which case it doesn’t matter,
   or it’s systemic with Duplicator on Docker, in which case it’s not my problem.
   
   I’m moving to another hand-built solution for a WordPress site <> Docker Site
   using CI/CD. This doesn’t mean Duplicator isn’t great, because it is. It’s just
   not a great fit for this migration of mine.
 *  Plugin Support [mohammedeisa](https://wordpress.org/support/users/mohammedeisa/)
 * (@mohammedeisa)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/docker-3/#post-18100975)
 * Hi [@magdamunro](https://wordpress.org/support/users/magdamunro/),
 * I’m happy that you can migrate your website, and thanks for letting us know.
 * If you have any other issues or questions using Duplicator, don’t hesitate to
   reach out to us again in a new support topic.
 * Thanks!
 *  [BenR](https://wordpress.org/support/users/brajno/)
 * (@brajno)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/docker-3/#post-18363060)
 * The host is what you define in docker-compose.yml, usually db
 *  Thread Starter [magdamunro](https://wordpress.org/support/users/magdamunro/)
 * (@magdamunro)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/docker-3/#post-18363126)
 * Yes, as I said the host was defined in all the scenarios I described including
   fresh wordpress, which worked. In all scenarios the db was reachable, just not
   from wp in the case of the Duplicator installation.
 * If you think a fresh WP site and a Duplicator install should be set up differently
   in Docker, please share.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Docker?’ is closed to new replies.

 * ![](https://ps.w.org/duplicator/assets/icon-256x256.png?rev=2906985)
 * [Duplicator - Backups & Migration Plugin - Cloud Backups, Scheduled Backups, & More](https://wordpress.org/plugins/duplicator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/duplicator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/duplicator/)
 * [Active Topics](https://wordpress.org/support/plugin/duplicator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/duplicator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/duplicator/reviews/)

## Tags

 * [docker](https://wordpress.org/support/topic-tag/docker/)
 * [Install](https://wordpress.org/support/topic-tag/install/)

 * 6 replies
 * 3 participants
 * Last reply from: [magdamunro](https://wordpress.org/support/users/magdamunro/)
 * Last activity: [1 year, 2 months ago](https://wordpress.org/support/topic/docker-3/#post-18363126)
 * Status: resolved