podman/pkg/specgen
Valentin Rothberg 0f668aa085 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-26 09:02:21 +01:00
..
generate workdir presence checks 2021-01-26 09:02:21 +01:00
config_unsupported.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
container_validate.go rootless container creation settings 2020-11-05 12:27:48 -06:00
namespaces.go Support --network=default as if it was private 2020-12-02 18:38:35 -05:00
pod_validate.go Spelling 2020-12-22 13:34:31 -05: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