podman/pkg/specgen/generate
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
..
kube Merge pull request #8954 from baude/reducebindingsize 2021-01-13 13:29:24 -05:00
config_linux.go Fix problems reported by staticcheck 2021-01-12 16:11:09 +01:00
config_linux_cgo.go Remove excessive error wrapping 2020-10-05 15:30:37 -07:00
config_linux_nocgo.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
container.go workdir presence checks 2021-01-26 09:02:21 +01:00
container_create.go workdir presence checks 2021-01-26 09:02:21 +01:00
namespaces.go network: disallow CNI networks with user namespaces 2021-01-13 17:04:51 +01:00
oci.go specgen: improve heuristic for /sys bind mount 2021-01-15 09:10:55 +01:00
pod_create.go Add support for slirp network for pods 2020-09-25 21:34:23 -04:00
ports.go Correct port range logic for port generation 2020-12-08 16:23:14 -05:00
security.go Containers should not get inheritable caps by default 2021-01-07 05:53:07 -05:00
storage.go Fix problems reported by staticcheck 2021-01-12 16:11:09 +01:00
validate.go Fix problems reported by staticcheck 2021-01-12 16:11:09 +01:00