Skip to content

Commit d622d90

Browse files
committed
bugfix: specify both cmd and its args when create a container
Signed-off-by: YaoZengzeng <[email protected]>
1 parent f2e5bd3 commit d622d90

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

daemon/mgr/cri.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -424,8 +424,7 @@ func (c *CriManager) CreateContainer(ctx context.Context, r *runtime.CreateConta
424424
}
425425
createConfig := &apitypes.ContainerCreateConfig{
426426
ContainerConfig: apitypes.ContainerConfig{
427-
// TODO: maybe we should ditinguish cmd and entrypoint more clearly.
428-
Cmd: config.Command,
427+
Cmd: append(config.Command, config.Args...),
429428
Env: generateEnvList(config.GetEnvs()),
430429
Image: image,
431430
WorkingDir: config.WorkingDir,

0 commit comments

Comments
 (0)