diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2020-08-05 16:28:47 -0400 |
---|---|---|
committer | Matthew Heon <matthew.heon@pm.me> | 2020-08-20 12:16:53 -0400 |
commit | fc24c0cc102de911387ed6b768173604fecb1eee (patch) | |
tree | 91e0df410ea10470c03375afc8719ac067538acd /test/build/from-scratch | |
parent | 32f0c8f624e0400a6decf219d6fe889f12272729 (diff) | |
download | podman-fc24c0cc102de911387ed6b768173604fecb1eee.tar.gz podman-fc24c0cc102de911387ed6b768173604fecb1eee.tar.bz2 podman-fc24c0cc102de911387ed6b768173604fecb1eee.zip |
Fix handling of working dir
Buildah and podman build can create images without a working dir.
FROM fedora
WORKDIR /test
If you build this image with caching twice, the second time the image
will not have a working dir.
Similarly if you execute
podman run --workdir /foobar fedora
It blows up since the workingdir is not created automatically.
Finally there was duplicated code for getting the workingdir
out of an image, that this PR removes.
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'test/build/from-scratch')
0 files changed, 0 insertions, 0 deletions