diff options
author | haircommander <pehunt@redhat.com> | 2018-08-16 17:12:16 -0400 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2018-08-23 18:16:28 +0000 |
commit | 697b46430a8a7c2c7231078911dcec51f0c6fab5 (patch) | |
tree | 11c42e287c8b22d9a2e47788d1427dba118d9828 /cmd/podman/varlink | |
parent | d5e690914dc78eca8664442e7677eb5004522bfd (diff) | |
download | podman-697b46430a8a7c2c7231078911dcec51f0c6fab5.tar.gz podman-697b46430a8a7c2c7231078911dcec51f0c6fab5.tar.bz2 podman-697b46430a8a7c2c7231078911dcec51f0c6fab5.zip |
Support pause containers in varlink
Signed-off-by: haircommander <pehunt@redhat.com>
Closes: #1187
Approved by: mheon
Diffstat (limited to 'cmd/podman/varlink')
-rw-r--r-- | cmd/podman/varlink/io.podman.varlink | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/cmd/podman/varlink/io.podman.varlink b/cmd/podman/varlink/io.podman.varlink index cd75b3b5f..5c122d86f 100644 --- a/cmd/podman/varlink/io.podman.varlink +++ b/cmd/podman/varlink/io.podman.varlink @@ -335,10 +335,15 @@ type ListPodContainerInfo ( ) # PodCreate is an input structure for creating pods. +# It emulates options to podman pod create, however +# changing pause image name and pause container +# is not currently supported type PodCreate ( name: string, cgroupParent: string, - labels: [string]string + labels: [string]string, + share: []string, + pause: bool ) # ListPodData is the returned struct for an individual pod @@ -651,6 +656,10 @@ method PullImage(name: string) -> (id: string) # "pod": "b05dee7bd4ccfee688099fe1588a7a898d6ddd6897de9251d4671c9b0feacb2a" # } # +# $ varlink call unix:/run/podman/io.podman/io.podman.CreatePod '{"create": {"pause": true, "share": ["ipc", "net", "uts"]}}' +# { +# "pod": "d7697449a8035f613c1a8891286502aca68fff7d5d49a85279b3bda229af3b28" +# } # ~~~ method CreatePod(create: PodCreate) -> (pod: string) |