Skip to content

Commit 981c55e

Browse files
Update pkg/cmd/container/create.go
Co-authored-by: Akihiro Suda <suda.kyoto@gmail.com> Signed-off-by: Mayur Das <mayur.das@neevcloud.com>
1 parent 14d4e2c commit 981c55e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/cmd/container/create.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ func Create(ctx context.Context, client *containerd.Client, args []string, netMa
257257
// process to keep the container's stdin open after it detaches, so the
258258
// process would read EOF immediately; with -t the shim holds the pty open.
259259
if options.Interactive && options.Detach && !options.TTY {
260-
return nil, generateRemoveStateDirFunc(ctx, id, internalLabels), errors.New("flags -i and -d can only be specified together with -t")
260+
return nil, generateRemoveStateDirFunc(ctx, id, internalLabels), errors.New("combination of flags -i and -d can only be specified together with -t")
261261
}
262262

263263
if options.TTY {

0 commit comments

Comments
 (0)