summaryrefslogtreecommitdiff
path: root/pkg/varlinkapi/pods.go
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2019-09-12 12:37:22 -0400
committerDaniel J Walsh <dwalsh@redhat.com>2019-09-13 08:29:46 -0400
commit88ebc33840ff07701254e2f6e2484f229f09a6cc (patch)
tree45cdc572816e7877fe316417a241b79585abe9f7 /pkg/varlinkapi/pods.go
parentb095d8a794edaab3b2d622b6882bfd57fad8375e (diff)
downloadpodman-88ebc33840ff07701254e2f6e2484f229f09a6cc.tar.gz
podman-88ebc33840ff07701254e2f6e2484f229f09a6cc.tar.bz2
podman-88ebc33840ff07701254e2f6e2484f229f09a6cc.zip
Report errors when trying to pause rootless containers
If you are running a rootless container on cgroupV1 you can not pause the container. We need to report the proper error if this happens. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'pkg/varlinkapi/pods.go')
-rw-r--r--pkg/varlinkapi/pods.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/varlinkapi/pods.go b/pkg/varlinkapi/pods.go
index c0fd8b1f7..9b659f66b 100644
--- a/pkg/varlinkapi/pods.go
+++ b/pkg/varlinkapi/pods.go
@@ -5,12 +5,12 @@ package varlinkapi
import (
"encoding/json"
"fmt"
- "github.com/containers/libpod/pkg/adapter/shortcuts"
"syscall"
"github.com/containers/libpod/cmd/podman/shared"
"github.com/containers/libpod/cmd/podman/varlink"
"github.com/containers/libpod/libpod"
+ "github.com/containers/libpod/pkg/adapter/shortcuts"
)
// CreatePod ...