我在网站的容器内执行 composer 命令安装插件但是提醒:
In GitDownloader.php line 82:
git was not found in your PATH, skipping source download
查看主机(debian-11.3)上有 Git 且显示版本为 2.30.2,容器内用 git --version 结果显示 git: not found。
是容器的 Git 有问题吗?尝试了下安装:
Git apt-get update
apt-get install -y git
但是:
~ # apt-get update
/bin/sh: apt-get: not found
~ # apt-get install -y git
/bin/sh: apt-get: not found