diff options
author | Matthew Heon <matthew.heon@pm.me> | 2021-03-03 15:30:52 -0500 |
---|---|---|
committer | Matthew Heon <matthew.heon@pm.me> | 2021-03-03 16:22:31 -0500 |
commit | 53d22c779c5d2df5ccda5a8e23db0501a0dadf44 (patch) | |
tree | ce1e78c2b9e342ecaba790cba6eff7c3f6e1fa1e /test/apiv2 | |
parent | 87e20560ac885c541784af1341098ce8e1e7a940 (diff) | |
download | podman-53d22c779c5d2df5ccda5a8e23db0501a0dadf44.tar.gz podman-53d22c779c5d2df5ccda5a8e23db0501a0dadf44.tar.bz2 podman-53d22c779c5d2df5ccda5a8e23db0501a0dadf44.zip |
Compat API: create volume source dirs on the host
It took a lot to figure out exactly how this should work, but I
think I finally have it. My initial versions of this created the
directory with the same owner as the user the container was run
with, which was rather complicated - but after review against
Docker, I have determined that is incorrect, and it's always made
as root:root 0755 (Ubuntu's Docker, which I was using to try and
test, is a snap - and as such it was sandboxed, and not actually
placing directories it made in a place I could find?). This makes
things much easier, since I just need to parse out source
directories for binds and ensure they exist.
Fixes #9510
Signed-off-by: Matthew Heon <matthew.heon@pm.me>
Diffstat (limited to 'test/apiv2')
-rw-r--r-- | test/apiv2/44-mounts.at | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/apiv2/44-mounts.at b/test/apiv2/44-mounts.at index fe202576d..5dc560852 100644 --- a/test/apiv2/44-mounts.at +++ b/test/apiv2/44-mounts.at @@ -4,7 +4,7 @@ podman pull $IMAGE &>/dev/null # Test various HostConfig options tmpfs_name="/mytmpfs" -t POST containers/create?name=hostconfig_test '"Image":"'$IMAGE'","Cmd":["df"],"HostConfig":{"TmpFs":{"'$tmpfs_name'":"rw"}}' 201 \ +t POST containers/create?name=hostconfig_test '"Image":"'$IMAGE'","Cmd":["df"],"HostConfig":{"Binds":["/tmp/doesnotexist:/test1"],"TmpFs":{"'$tmpfs_name'":"rw"}}' 201 \ .Id~[0-9a-f]\\{64\\} cid=$(jq -r '.Id' <<<"$output") |