mirror of https://github.com/containers/podman.git
network setup: fail if slirp4netns is not installed
I do not see why we should only log an error. If slirp4netns is requested but not installed we should error. [NO NEW TESTS NEEDED] Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
parent
0ebf0bc560
commit
38bd4010cf
|
@ -216,8 +216,7 @@ func (r *Runtime) setupSlirp4netns(ctr *Container, netns ns.NetNS) error {
|
|||
var err error
|
||||
path, err = exec.LookPath("slirp4netns")
|
||||
if err != nil {
|
||||
logrus.Errorf("Could not find slirp4netns, the network namespace won't be configured: %v", err)
|
||||
return nil
|
||||
return fmt.Errorf("could not find slirp4netns, the network namespace can't be configured: %w", err)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue