Skip to content

wp-env: Compatibility issue with Docker Desktop v4.67.0 (MacOS Intel) #76930

@ohboylan

Description

@ohboylan

Description

wp-env recently starting throwing errors when running wp-env start --update.

Issue started after updating Docker Desktop from v4.66.1 to v4.67.0.

Issue stopped occurring after manually reverting Docker Desktop back to v4.66.1, downloaded from the Docker Desktop release notes page.


On Docker Desktop v4.67.0, wp-env doesn't seem to download any external themes or plugins, or correctly link local themes or plugins. Linking a local theme results in a "Stylesheet is missing." error, when the theme does in fact have a style.css file containing the theme metadata.

Here's the CLI Log when running wp-env start --update:

> [email protected] up
> wp-env start --update

✖ afterStart Error:
ℹ Starting 'wp theme activate lab-kit' on the cli container.

Error: Stylesheet is missing.
✖ Command failed with exit code 1
Command failed with exit code 1

Step-by-step reproduction instructions

  1. Install Docker Desktop v4.67.0.
  2. Place a generic .wp-env.json & package.json config file, try linking external plugins, and a locally linked theme.
  3. Run wp-env start --update

Screenshots, screen recording, code snippet

CLI screenshot:

Image


Example wp-env config file:

{
  "themes": [ "./site/wp-content/themes/lab-kit" ],
  "plugins": [
    "./site/wp-content/plugins/lab-kit-blocks",
    "https://downloads.wordpress.org/plugin/redirection.latest-stable.zip",
    "https://downloads.wordpress.org/plugin/updraftplus.latest-stable.zip",
    "https://downloads.wordpress.org/plugin/disable-comments.latest-stable.zip",
    "https://downloads.wordpress.org/plugin/wordpress-seo.latest-stable.zip",
    "https://downloads.wordpress.org/plugin/intuitive-custom-post-order.latest-stable.zip",
    "https://downloads.wordpress.org/plugin/query-monitor.latest-stable.zip"
  ],
  "config": {
    "WP_DEBUG": true,
    "WP_UPLOAD_MAX_FILESIZE": "128M",
    "WP_MEMORY_LIMIT": "256M",
    "WP_ENVIRONMENT_TYPE": "development",
    "WP_DEVELOPMENT_MODE": "all"
  },
  "mappings": {
    "data": "./data"
  },
  "lifecycleScripts": {
    "afterStart": "wp-env run cli wp theme activate lab-kit"
  },
  "phpmyadmin": true,
  "testsEnvironment": false
}

Environment info

  • MacOS (Intel Chip)
  • wp-env v11.2.0
  • Docker Desktop v4.67.0

Please confirm that you have searched existing issues in the repo.

  • Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

  • Yes

Please confirm which theme type you used for testing.

  • Block
  • Classic
  • Hybrid (e.g. classic with theme.json)
  • Not sure

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs TestingNeeds further testing to be confirmed.[Tool] Env/packages/env[Type] BugAn existing feature does not function as intended

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions