summaryrefslogtreecommitdiff
path: root/pkg/varlinkapi/pods.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/varlinkapi/pods.go')
-rw-r--r--pkg/varlinkapi/pods.go12
1 files changed, 6 insertions, 6 deletions
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