Skip to content

exec command returns failure when the command doesn't exist #953

Closed

Description

Bugs

Follow the tutorial in the README to create config.json and the rootfs. Then change process in config.json to sleep 1000, etc., and execute the following commands.

$ sudo ./youki create -b tutorial tutorial_container
$ sudo ./youki start tutorial_container 
$ sudo ./youki exec tutorial_container non-exist-command
$ echo $?
0

Expected behavior

echo $? should return the failure exit code.

Goal

Pass the integration test TestContainerExecNoBinaryExists in contianerd.
related: #531

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions