• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Question Docker WordPress default passwords

iratefox

New Pleskian
Hi everyone,

I'm trying to setup a Docker container with the official WordPress image and just cannot get this going.

I tried the out-of-the-box settings in Plesk and I got as far as the initial WordPress setup screen but I don't know the DB user/pass at this point and cannot seem to find a location/way of obtaining this.

I tried setting environment variables for SQL db/user/pass and WP vars and it always fails with "MySQL Connection Error: (2002) php_network_getaddresses: getaddrinfo failed: Name or service not known". With this, the WordPress setup screen is not shown. At least without using these variables it seems to actually install - i just don't know the credentials.

Any ideas how I might solve this? I've never had to setup WordPress using Docker before but I've set up a number of other applications and didn't hit such basic issues. Unfortunately, there seems to be nothing in search results that I have been able to successfully use.

Thanks
 
May I ask why you need WordPress in docker? Why aren't you using the awesome Plesk WordPress Toolkit specially made for WordPress hosting?
 
Back
Top