#1450  docker启动时无法添加参数
Closed
hashtang opened 10 months 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属性中,但是没有正常启动容易,帮我看看是不是写错了

Robin Shen changed state to 'Closed' 10 months ago
Previous Value Current Value
Open
Closed
Robin Shen commented 10 months ago

Arguments are intended for docker image arguments. Please use options instead which is added in build #3866

issue 1 of 1
Type
Question
Priority
Normal
Assignee
Issue Votes (0)
Watchers (4)
Reference
onedev/server#1450
Please wait...
Page is in error, reload to recover