我正在尝试运行这个停靠命令
docker run --rm --name lighthouse -it \
-v $PWD/test-results/lighthouse:/home/chrome/reports \
-v $PWD/lighthouse:/lighthouse \
--cap-add=SYS_ADMIN femtopixel/google-lighthouse \
--config-path=/lighthouse/config/custom-config.js \
$full_url \
--output html \
--output json但它并没有采纳--config-path的论点,不知怎么的,我把卷映射错了。
我正在尝试创建一个名为lighthouse的卷,但我得到了以下错误:
/usr/bin/entrypoint: 11: exec:--config-path=/lighthouse/config/custom-config.js:未找到
发布于 2019-06-12 10:19:33
您应该将url作为我认为的第一个参数。
docker run --rm --name lighthouse -it \
-v $PWD/test-results/lighthouse:/home/chrome/reports \
-v $PWD/lighthouse:/lighthouse \
--cap-add=SYS_ADMIN femtopixel/google-lighthouse \
$full_url \
--config-path=/lighthouse/config/custom-config.js \
--output html \
--output jsonhttps://stackoverflow.com/questions/56559619
复制相似问题