mirror of
https://github.com/containers/podman.git
synced 2025-08-23 09:18:19 +08:00

Fix following issues: - create container API handler ignores Annotations from HostConfig - inspect container API handler does not provide Annotations as part of HostConfig Signed-off-by: diplane <diplane3d@gmail.com>
9 lines
304 B
Bash
9 lines
304 B
Bash
# -*- sh -*-
|
|
|
|
podman pull $IMAGE &>/dev/null
|
|
t POST containers/create Image=$IMAGE HostConfig='{"annotations":{"foo":"bar","zoo":"boo"}}' 201 .Id~[0-9a-f]\\{64\\}
|
|
cid=$(jq -r '.Id' <<<"$output")
|
|
t GET containers/$cid/json 200 \
|
|
.HostConfig.Annotations.foo=bar \
|
|
.HostConfig.Annotations.zoo=boo \
|