spiegel_podman/pkg/specgen
Valentin Rothberg c48753bfa0 workdir presence checks
A container's workdir can be specified via the CLI via `--workdir` and
via an image config with the CLI having precedence.

Since images have a tendency to specify workdirs without necessarily
shipping the paths with the root FS, make sure that Podman creates the
workdir.  When specified via the CLI, do not create the path, but check
for its existence and return a human-friendly error.

NOTE: `crun` is performing a similar check that would yield exit code
127.  With this change, however, Podman performs the check and yields
exit code 126.  Since this is specific to `crun`, I do not consider it
to be a breaking change of Podman.

Fixes: #9040
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2021-01-29 15:24:04 -05:00
..
generate workdir presence checks 2021-01-29 15:24:04 -05:00
config_unsupported.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
container_validate.go Allow static ip and mac with rootless cni network 2021-01-28 11:33:29 +01:00
namespaces.go Support --network=default as if it was private 2020-12-02 18:38:35 -05:00
pod_validate.go Allow static ip and mac with rootless cni network 2021-01-28 11:33:29 +01:00
podspecgen.go Add support for slirp network for pods 2020-09-25 21:34:23 -04:00
specgen.go Spelling 2020-12-22 13:34:31 -05:00
volumes.go Reduce general binding binary size 2021-01-13 09:35:24 -06:00