docker启动时无法添加参数 (OD-1450)
hashtang opened 3 years ago

镜像打包完成之后,名称为:app:98 如果我在本机使用以下命令,可以正常启动 docker run --name app -p 3001:3001 -d app:98

查看onedev的文档之后,发现如果要添加启动参数,需要将参数写在args属性里面,所以,我是这样配置onedev的。

 - !RunContainerStep
    name: Run Docker Container
    image: app
    args: --name app -p 3001:3001
    useTTY: false
    condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL

将参数写在了args属性中,但是没有正常启动容易,帮我看看是不是写错了

issue 1/1
Type
Question
Priority
Normal
Assignee
Issue Votes (0)
Watchers (4)
Reference
OD-1450
Please wait...
Connection lost or session expired, reload to recover
Page is in error, reload to recover