gpt4 book ai didi

docker - 从容器运行 Ga特林

转载 作者:行者123 更新时间:2023-12-02 04:22:44 24 4
gpt4 key购买 nike

我正在使用 denvazh/gadling 容器,一切正常,除了我尝试传递这样的模拟列表:

Attaching to gatling
gatling_1 | GATLING_HOME is set to /opt/gatling
gatling_1 | Choose a simulation number:
gatling_1 | [0] AppsPods
gatling_1 | [1] ServerSimulation
gatling_1 | [2] computerdatabase.BasicSimulation
gatling_1 | [3] computerdatabase.advanced.AdvancedSimulationStep01
gatling_1 | [4] computerdatabase.advanced.AdvancedSimulationStep02
gatling_1 | [5] computerdatabase.advanced.AdvancedSimulationStep03

我写这样的命令:

docker run -it --rm -v /home/core/gatling/conf:/opt/gatling/conf \
-v /home/core/gatling/user-files:/opt/gatling/user-files \
-v /home/core/gatling/results:/opt/gatling/results \
denvazh/gatling -s AdvancedSimulationStep01

但是没有任何意义的模拟列表再次显示,我需要从列表中选择测试来开始模拟。那么是否可以只运行我指定的启动 docker run 命令的测试???

最佳答案

您需要提供完全限定的类名,即

docker run -it --rm -v/home/core/gatting/conf:/opt/gatting/conf\-v/home/core/gatting/user-files:/opt/gatting/user -files\-v/home/core/gadling/results:/opt/gadling/results\denvazh/gadling -s computerdatabase.advanced.AdvancedSimulationStep01

关于docker - 从容器运行 Ga特林,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39596260/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com