在运行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: []发布于 2022-03-23 17:45:11
您没有提到您的环境,但我想您在macOS上使用了Docker,并且启用了实验设置。请关掉它们..。它们还不能正常工作。请参阅macOS DDEV drush command Permission denied (Experimental docker settings)
https://stackoverflow.com/questions/71590413
复制相似问题