mirror of
https://github.com/containers/podman
synced 2024-10-20 17:23:30 +00:00
containers: look also for 'file not found' in the error message
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
parent
2f8451468c
commit
efa26eedee
|
@ -342,7 +342,7 @@ func (r *LocalRuntime) Run(ctx context.Context, c *cliconfig.RunValues, exitCode
|
|||
if err := ctr.Start(ctx, c.IsSet("pod")); err != nil {
|
||||
// This means the command did not exist
|
||||
exitCode = 127
|
||||
if strings.Contains(err.Error(), "permission denied") {
|
||||
if strings.Contains(err.Error(), "permission denied") || strings.Contains(err.Error(), "file not found") {
|
||||
exitCode = 126
|
||||
}
|
||||
return exitCode, err
|
||||
|
|
Loading…
Reference in a new issue