spiegel_podman/pkg
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
..
annotations Spelling 2020-12-22 13:34:31 -05:00
api Set log driver for compatability containers 2021-01-21 10:22:36 -06:00
auth Add X-Registry-Config support 2020-09-29 08:46:44 -07:00
autoupdate Spelling 2020-12-22 13:34:31 -05:00
bindings Add binding options for container|pod exists 2021-01-20 08:36:41 -06:00
cgroups Spelling 2020-12-22 13:34:31 -05:00
channel fix closed the remote connection on pull causes service panic 2020-10-03 11:38:38 +08:00
checkpoint Include named volumes in container migration 2021-01-07 07:51:19 +00:00
copy Spelling 2020-12-22 13:34:31 -05:00
criu Add helper function to read out CRIU version 2018-10-23 12:52:03 +02:00
ctime Re-add int64 casts for ctime 2019-07-23 15:43:40 -04:00
domain libpod: add (*Container).ResolvePath() 2021-01-29 15:23:56 -05:00
env Ensure DefaultEnvVariables is used in Specgen 2020-08-18 15:17:46 -04:00
errorhandling Reduce general binding binary size 2021-01-13 09:35:24 -06:00
hooks Spelling 2020-12-22 13:34:31 -05:00
inspect Exorcise Driver code from libpod/define 2021-01-12 11:48:53 -05:00
kubeutils Remove dependency on kubernetes 2018-03-27 21:55:33 +00:00
lookup Turn on More linters 2020-06-15 07:05:56 -04:00
namespaces [CI:DOCS] BZ1860126 - Fix userns defaults in run man page 2020-08-07 15:42:13 -04:00
netns Switch references of /var/run -> /run 2021-01-07 05:37:24 -05:00
parallel Move pod jobs to parallel execution 2020-10-07 10:00:11 -04:00
ps Add Networks format placeholder to podman ps and pod ps 2021-01-09 19:15:43 +01:00
registrar Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
registries pkg/registries: add a retiring note 2020-09-30 16:30:41 +02:00
resolvconf Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
rootless rootless: automatically split userns ranges 2021-01-07 09:42:27 +01:00
rootlessport rootlessport: use two different channels 2020-04-29 12:35:23 +02:00
seccomp Spelling 2020-12-22 13:34:31 -05:00
selinux Fix SELinux functions names to not be repetitive 2020-04-23 15:57:34 -04:00
signal Fix build for mips architecture follow-up 2021-01-07 15:04:22 +01:00
specgen workdir presence checks 2021-01-29 15:24:04 -05:00
systemd More /var/run -> /run 2021-01-12 17:38:32 -05:00
terminal Refine public key usage when remote 2020-12-10 15:32:37 -07:00
timetype make lint: enable gocritic 2020-01-13 14:27:02 +01:00
tracing make lint: include pkg/tracing 2020-01-14 09:54:48 +01:00
trust image sign using per user registries.d 2020-12-07 09:58:38 -05:00
util Spelling 2020-12-22 13:34:31 -05:00