diff options
author | Giuseppe Scrivano <gscrivan@redhat.com> | 2019-08-12 15:47:26 +0200 |
---|---|---|
committer | Giuseppe Scrivano <gscrivan@redhat.com> | 2019-08-12 15:47:26 +0200 |
commit | efa26eedee2876c521cef61f048d8c8e13022cf2 (patch) | |
tree | c69fb79283eba7ab6edd3c5a12676fe26f0c1534 /pkg/adapter | |
parent | 2f8451468cc596b3e0af52e2f11c353cd80e662e (diff) | |
download | podman-efa26eedee2876c521cef61f048d8c8e13022cf2.tar.gz podman-efa26eedee2876c521cef61f048d8c8e13022cf2.tar.bz2 podman-efa26eedee2876c521cef61f048d8c8e13022cf2.zip |
containers: look also for 'file not found' in the error message
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'pkg/adapter')
-rw-r--r-- | pkg/adapter/containers.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/adapter/containers.go b/pkg/adapter/containers.go index b712bd9aa..45a9a54a3 100644 --- a/pkg/adapter/containers.go +++ b/pkg/adapter/containers.go @@ -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 |