{"id":18059046,"date":"2024-10-07T18:01:11","date_gmt":"2024-10-07T18:01:11","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/docker-3\/"},"modified":"2024-10-07T18:01:11","modified_gmt":"2024-10-07T18:01:11","slug":"docker-3","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/docker-3\/","title":{"rendered":"Docker?"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">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 \u2014\u00a0Error: &#8220;Unable to connect the user <strong>[db-user]<\/strong> to the host <strong>[localhost]<\/strong>. The server error response was: <em>No such file or directory<\/em>&#8216; &#8220;\u2014 nor to 127.0.0.1 \u2014 Error: &#8220;Unable to connect the user <strong>[db-user]<\/strong> to the host <strong>[127.0.0.1]<\/strong>. The server error response was: <em>Connection refused<\/em>&#8216; &#8220;.<br \/><br \/>However, I can use the same credentials to connect locally through my OS (mac) with any DB app, or I can issue <code>docker exec -it<\/code> 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.<br \/><br \/>in the dup-installer-log\u2026 file you can read pretty much the same thing, except it also states under &#8220;INSTALLER ERROR:&#8221; that &#8220;DATABASE: NULL&#8221;, which is surprising given I&#8217;ve supplied that. The same is true for both &#8220;127.0.0.1&#8221; as well as &#8220;localhost&#8221;. <br \/><br \/>What can be done?<\/p>\n","protected":false},"template":"","class_list":["post-18059046","topic","type-topic","status-publish","hentry","topic-tag-docker","topic-tag-install"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18059046","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18059046\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=18059046"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}