`ddev magento` 导致 `permission denied: unknown`

`ddev magento` results in `permission denied: unknown`

在 运行ning ddev start 之后,我无法从容器外部 运行 magento 命令。

% ddev magento
OCI runtime exec failed: exec failed: container_linux.go:380: starting container process caused: exec: "/mnt/ddev_config/.global_commands/web/magento": permission denied: unknown
Failed to run magento : exit status 126

上述路径确实存在于容器中。

ddev exec magento 有效。

ddev composer 有效。

name: myproject
type: magento2
docroot: pub
php_version: "7.4"
webserver_type: nginx-fpm
router_http_port: "80"
router_https_port: "443"
xdebug_enabled: false
additional_hostnames: []
additional_fqdns: []
mariadb_version: "10.3"
mysql_version: ""
use_dns_when_possible: true
composer_version: ""
web_environment: []

你没有提到你的环境,但我想你在 Docker 的 macOS 上并且启用了实验设置。请关闭它们……它们还不能正常工作。参见