summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorhaircommander <pehunt@redhat.com>2018-08-17 10:36:51 -0400
committerAtomic Bot <atomic-devel@projectatomic.io>2018-08-23 18:16:28 +0000
commit2a7449362f2884d9ae6a783c0ce38979d882e2cf (patch)
tree6e7b8ab33505d210201e62faba6a50f98c0a4ea7 /pkg
parent697b46430a8a7c2c7231078911dcec51f0c6fab5 (diff)
downloadpodman-2a7449362f2884d9ae6a783c0ce38979d882e2cf.tar.gz
podman-2a7449362f2884d9ae6a783c0ce38979d882e2cf.tar.bz2
podman-2a7449362f2884d9ae6a783c0ce38979d882e2cf.zip
Change pause container to infra container
Signed-off-by: haircommander <pehunt@redhat.com> Closes: #1187 Approved by: mheon
Diffstat (limited to 'pkg')
-rw-r--r--pkg/inspect/inspect.go2
-rw-r--r--pkg/varlinkapi/pods.go12
2 files changed, 7 insertions, 7 deletions
diff --git a/pkg/inspect/inspect.go b/pkg/inspect/inspect.go
index be3818db8..b9230027c 100644
--- a/pkg/inspect/inspect.go
+++ b/pkg/inspect/inspect.go
@@ -170,7 +170,7 @@ type ContainerInspectData struct {
NetworkSettings *NetworkSettings `json:"NetworkSettings"` //TODO
ExitCommand []string `json:"ExitCommand"`
Namespace string `json:"Namespace"`
- IsPause bool `json:"IsPause"`
+ IsInfra bool `json:"IsInfra"`
}
// ContainerInspectState represents the state of a container.
diff --git a/pkg/varlinkapi/pods.go b/pkg/varlinkapi/pods.go
index 657aa0baf..d95b631f2 100644
--- a/pkg/varlinkapi/pods.go
+++ b/pkg/varlinkapi/pods.go
@@ -21,14 +21,14 @@ func (i *LibpodAPI) CreatePod(call iopodman.VarlinkCall, create iopodman.PodCrea
if create.Name != "" {
options = append(options, libpod.WithPodName(create.Name))
}
- if len(create.Share) > 0 && !create.Pause {
- return call.ReplyErrorOccurred("You cannot share kernel namespaces on the pod level without a pause container")
+ if len(create.Share) > 0 && !create.Infra {
+ return call.ReplyErrorOccurred("You cannot share kernel namespaces on the pod level without an infra container")
}
- if len(create.Share) == 0 && create.Pause {
- return call.ReplyErrorOccurred("You must share kernel namespaces to run a pause container")
+ if len(create.Share) == 0 && create.Infra {
+ return call.ReplyErrorOccurred("You must share kernel namespaces to run an infra container")
}
- if create.Pause {
- options = append(options, libpod.WithPauseContainer())
+ if create.Infra {
+ options = append(options, libpod.WithInfraContainer())
nsOptions, err := shared.GetNamespaceOptions(create.Share)
if err != nil {
return err