我試圖在Windows上運行泊塢窗命令10作爲企業管理:與發現-exec選項泊塢窗EXEC(發現:缺少參數`-exec')
docker-compose exec --user magento2 web find /var/www/sample-data -type d -exec chmod g+ws {} \;
,但我得到了錯誤:
find: missing argument to `-exec'
我試圖用 '' 或 「逃跑」:
docker-compose exec --user magento2 web "find /var/www/sample-data -type d -exec chmod g+ws {} \;"
但它拋出anouther錯誤
rpc error: code = 2 desc = oci runtime error: exec failed: container_linux.go:262: starting container process caused "exec: \"find /var/www/sample-data -type d -exec chmod g+ws {} \\\\;\": sta t find /var/www/sample-data -type d -exec chmod g+ws {} \\;: no such file or directory"
我怎樣才能解決這個問題?通常當我在容器中插入這個命令 - 一切正常。