Skip to content

The ssh option doesn't accept a docker scheme when used in the root of a config file #5447

@johnbillion

Description

@johnbillion

Describe the current, buggy behavior

Given a Docker container called myproject_php_1 that can run WP-CLI commands, the following works as expected:

✅ Including the --ssh flag on the CLI:

wp option get home --ssh=docker:www-data@myproject_php_1`

✅ Using the ssh option for an alias in wp-cli.yml:

---
@local:
  ssh: docker:www-data@myproject_php_1
wp @local option get home

However, the following does not work:

❌ Using the ssh option in the root of wp-cli/yml:

ssh: docker:www-data@myproject_php_1
wp @local option get home

This results in the following error:

sh: docker: not found

I don't have much more info at the moment but wanted to report it. I can revisit this when I'm less busy.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions