diff options
author | Matthew Heon <matthew.heon@gmail.com> | 2018-06-03 14:05:54 -0400 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2018-06-04 17:52:28 +0000 |
commit | 6d52ebdd13ad052bbf8bfa9efa4e45cafbce1fc2 (patch) | |
tree | 0fd4ccc4320ab2250810b37cacbac9ea03cba195 /cmd/podman/common.go | |
parent | 3416e9f19466c76a42abfff7e06422a929e3b79b (diff) | |
download | podman-6d52ebdd13ad052bbf8bfa9efa4e45cafbce1fc2.tar.gz podman-6d52ebdd13ad052bbf8bfa9efa4e45cafbce1fc2.tar.bz2 podman-6d52ebdd13ad052bbf8bfa9efa4e45cafbce1fc2.zip |
Add flag to add annotations to a container
Also add annotations from the image the container was created
from.
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
Closes: #886
Approved by: rhatdan
Diffstat (limited to 'cmd/podman/common.go')
-rw-r--r-- | cmd/podman/common.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd/podman/common.go b/cmd/podman/common.go index 63c41d01c..f38348a65 100644 --- a/cmd/podman/common.go +++ b/cmd/podman/common.go @@ -80,6 +80,10 @@ var createFlags = []cli.Flag{ Usage: "Add a custom host-to-IP mapping (host:ip) (default [])", }, cli.StringSliceFlag{ + Name: "annotation", + Usage: "Add annotations to container (key:value) (default [])", + }, + cli.StringSliceFlag{ Name: "attach, a", Usage: "Attach to STDIN, STDOUT or STDERR (default [])", }, |