diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-10-22 11:03:46 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-22 11:03:46 -0400 |
commit | 2cb12bbc5a832e5b69d3b52480377df716dc543b (patch) | |
tree | a475bf30f9fde2ee989e83620c03049bd2d82654 /test | |
parent | 513c2610f37fa530b951a9a0105f49dfd346c091 (diff) | |
parent | 410fa53f89b1c408ce57318bb054b4229ad845d5 (diff) | |
download | podman-2cb12bbc5a832e5b69d3b52480377df716dc543b.tar.gz podman-2cb12bbc5a832e5b69d3b52480377df716dc543b.tar.bz2 podman-2cb12bbc5a832e5b69d3b52480377df716dc543b.zip |
Merge pull request #8098 from vrothberg/fix-8082
container create: record correct image name
Diffstat (limited to 'test')
-rw-r--r-- | test/system/030-run.bats | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/system/030-run.bats b/test/system/030-run.bats index 9f4037730..8712dc72d 100644 --- a/test/system/030-run.bats +++ b/test/system/030-run.bats @@ -473,4 +473,23 @@ json-file | f run_podman kill $cid } +# Regression test for issue #8082 +@test "podman run : look up correct image name" { + # Create a 2nd tag for the local image. + local name="localhost/foo/bar" + run_podman tag $IMAGE $name + + # Create a container with the 2nd tag and make sure that it's being + # used. #8082 always inaccurately used the 1st tag. + run_podman create $name + cid="$output" + + run_podman inspect --format "{{.ImageName}}" $cid + is "$output" "$name" + + # Clean up. + run_podman rm $cid + run_podman untag $IMAGE $name +} + # vim: filetype=sh |