Title: Trouble using Jetpack Docker development environment
Last modified: April 23, 2021

---

# Trouble using Jetpack Docker development environment

 *  Resolved [ccallas](https://wordpress.org/support/users/ccallas/)
 * (@ccallas)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/trouble-using-jetpack-docker-development-environment/)
 * I’m running on a Windows 10 system with WSL 2.
 * Having trouble with setting up the Jetpack development environment. I suspect
   I’m misunderstanding something basic. Appreciate any advice/pointers!
 * Have been attempting to following at instructions for the recommended Docker 
   environment:
 * [https://github.com/Automattic/jetpack/blob/master/docs/development-environment.md](https://github.com/Automattic/jetpack/blob/master/docs/development-environment.md)
 * [https://github.com/Automattic/jetpack/blob/master/tools/docker/README.md](https://github.com/Automattic/jetpack/blob/master/tools/docker/README.md)
 * Steps to reproduce the issue:
 * 1. docker pull automattic/jetpack-wordpress-dev
    2. run the image
 * What I expected:
 * Access to the development environment
 * What happened instead:
 * Container runs /usr/local/bin/run, which eventually times out.
 * Logs show:
 * Xdebug: [Log Files] File ‘/var/log/php/xdebug_remote.log’ could not be opened.
 * Downloading WordPress 5.7.1 (en_US)…
 * md5 hash verified: cb9211912f9665943723ee0d9a7fa096
 * Success: WordPress downloaded.
 * Creating wp-config.php …
 * Xdebug: [Log Files] File ‘/var/log/php/xdebug_remote.log’ could not be opened.
 * ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/
   run/mysqld/mysqld.sock’ (2)
 * Waiting for creating wp-config.php until mysql is ready to receive connections
 * Xdebug: [Log Files] File ‘/var/log/php/xdebug_remote.log’ could not be opened.
 * ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/
   run/mysqld/mysqld.sock’ (2)
 * Waiting for creating wp-config.php until mysql is ready to receive connections
 * Xdebug: [Log Files] File ‘/var/log/php/xdebug_remote.log’ could not be opened.
 * ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/
   run/mysqld/mysqld.sock’ (2)
 * Waiting for creating wp-config.php until mysql is ready to receive connections
 * Xdebug: [Log Files] File ‘/var/log/php/xdebug_remote.log’ could not be opened.
 * ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/
   run/mysqld/mysqld.sock’ (2)
 * Waiting for creating wp-config.php until mysql is ready to receive connections
 * Xdebug: [Log Files] File ‘/var/log/php/xdebug_remote.log’ could not be opened.
 * ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/
   run/mysqld/mysqld.sock’ (2)
 * Waiting for creating wp-config.php until mysql is ready to receive connections
 * Xdebug: [Log Files] File ‘/var/log/php/xdebug_remote.log’ could not be opened.
 * ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/
   run/mysqld/mysqld.sock’ (2)
 * Waiting for creating wp-config.php until mysql is ready to receive connections
 * Xdebug: [Log Files] File ‘/var/log/php/xdebug_remote.log’ could not be opened.
 * ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/
   run/mysqld/mysqld.sock’ (2)
 * Waiting for creating wp-config.php until mysql is ready to receive connections
 * Xdebug: [Log Files] File ‘/var/log/php/xdebug_remote.log’ could not be opened.
 * ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/
   run/mysqld/mysqld.sock’ (2)
 * Waiting for creating wp-config.php until mysql is ready to receive connections
 * Xdebug: [Log Files] File ‘/var/log/php/xdebug_remote.log’ could not be opened.
 * ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/
   run/mysqld/mysqld.sock’ (2)
 * Waiting for creating wp-config.php until mysql is ready to receive connections
 * Xdebug: [Log Files] File ‘/var/log/php/xdebug_remote.log’ could not be opened.
 * ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/
   run/mysqld/mysqld.sock’ (2)
 * Waiting for creating wp-config.php until mysql is ready to receive connections
 * Xdebug: [Log Files] File ‘/var/log/php/xdebug_remote.log’ could not be opened.
 * ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/
   run/mysqld/mysqld.sock’ (2)
 * Waiting for creating wp-config.php until mysql is ready to receive connections
 * Xdebug: [Log Files] File ‘/var/log/php/xdebug_remote.log’ could not be opened.
 * ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/
   run/mysqld/mysqld.sock’ (2)
 * Waiting for creating wp-config.php until mysql is ready to receive connections
 * Xdebug: [Log Files] File ‘/var/log/php/xdebug_remote.log’ could not be opened.
 * ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/
   run/mysqld/mysqld.sock’ (2)
 * Waiting for creating wp-config.php until mysql is ready to receive connections
 * Xdebug: [Log Files] File ‘/var/log/php/xdebug_remote.log’ could not be opened.
 * ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/
   run/mysqld/mysqld.sock’ (2)
 * Waiting for creating wp-config.php until mysql is ready to receive connections
 * Xdebug: [Log Files] File ‘/var/log/php/xdebug_remote.log’ could not be opened.
 * ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/
   run/mysqld/mysqld.sock’ (2)
 * Waiting for creating wp-config.php until mysql is ready to receive connections
 * Setting other wp-config.php constants…
 * Xdebug: [Log Files] File ‘/var/log/php/xdebug_remote.log’ could not be opened.
 * Error: ‘wp-config.php’ not found.
 * Either create one manually or use `wp config create`.

Viewing 1 replies (of 1 total)

 *  Plugin Support [Jen H. (a11n)](https://wordpress.org/support/users/jennywp/)
 * (@jennywp)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/trouble-using-jetpack-docker-development-environment/#post-14371466)
 * Hey [@ccallas](https://wordpress.org/support/users/ccallas/), thanks for all 
   that comprehensive information.
 * Unfortunately, this is out of scope for discussion here on the support forums,
   but we’d like for you to post an issue to the Jetpack GitHub repo itself. There,
   our developers can get their eyes on it directly, and this will be more discoverable
   by people in the future if they have the same problems you describe.
 * You can get started here:
 * [https://github.com/Automattic/jetpack/issues/new/choose](https://github.com/Automattic/jetpack/issues/new/choose)
 * I’m going to mark this thread as resolved now.

Viewing 1 replies (of 1 total)

The topic ‘Trouble using Jetpack Docker development environment’ is closed to new
replies.

 * ![](https://ps.w.org/jetpack/assets/icon.svg?rev=2819237)
 * [Jetpack - WP Security, Backup, Speed, & Growth](https://wordpress.org/plugins/jetpack/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jetpack/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jetpack/)
 * [Active Topics](https://wordpress.org/support/plugin/jetpack/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jetpack/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jetpack/reviews/)

## Tags

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

 * 1 reply
 * 2 participants
 * Last reply from: [Jen H. (a11n)](https://wordpress.org/support/users/jennywp/)
 * Last activity: [5 years, 1 month ago](https://wordpress.org/support/topic/trouble-using-jetpack-docker-development-environment/#post-14371466)
 * Status: resolved