Skip to content

Commit 9f5f182

Browse files
authored
Merge pull request #1027 from YaoZengzeng/projected
bugfix: specify both cmd and its args when create a container
2 parents 5dbe6ea + 9cd17c6 commit 9f5f182

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)