Skip to content

Conversation

@ktock
Copy link
Member

@ktock ktock commented Jun 23, 2022

ctr c create doesn't seems to parse container's arguments correctly.
This seems related to urfave/cli#1424 .

# ctr c create -t -- ghcr.io/containerd/busybox:1.28 foo3 /bin/sh -c date
ctr: image "-c": not found

This commit is a quick fix of this problem by adding SkipArgReorder: true.
This is the same approach as ctr run and ctr t exec.

Copy link
Member

@estesp estesp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@estesp
Copy link
Member

estesp commented Jun 27, 2022

merging now that we know the Windows failure (on almost all PRs) is a core Go/gcc issue.

@estesp estesp merged commit 8fe779f into containerd:main Jun 27, 2022
@ktock ktock deleted the ctr-create-reordering branch June 28, 2022 00:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants