aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatej Vasek <mvasek@redhat.com>2020-10-20 03:02:07 +0200
committerMatej Vasek <mvasek@redhat.com>2020-10-20 03:13:56 +0200
commitbacdbf6e205e85a09741f392023b806d2ce41508 (patch)
treec11aa07994b15e6ae6dd2e21bdbd56a0c76cd743
parente944544271d9e515bdfc7e364e3ddf372b0dd378 (diff)
downloadpodman-bacdbf6e205e85a09741f392023b806d2ce41508.tar.gz
podman-bacdbf6e205e85a09741f392023b806d2ce41508.tar.bz2
podman-bacdbf6e205e85a09741f392023b806d2ce41508.zip
fix: neutral value for MemorySwappiness
Signed-off-by: Matej Vasek <mvasek@redhat.com>
-rw-r--r--pkg/api/handlers/compat/containers_create.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/api/handlers/compat/containers_create.go b/pkg/api/handlers/compat/containers_create.go
index 4ce31cc83..8a0b3c922 100644
--- a/pkg/api/handlers/compat/containers_create.go
+++ b/pkg/api/handlers/compat/containers_create.go
@@ -238,7 +238,7 @@ func makeCreateConfig(ctx context.Context, containerConfig *config.Config, input
Pod: "", // podman
PodmanPath: "", // podman
Quiet: false, // front-end only
- Resources: createconfig.CreateResourceConfig{},
+ Resources: createconfig.CreateResourceConfig{MemorySwappiness: -1},
RestartPolicy: input.HostConfig.RestartPolicy.Name,
Rm: input.HostConfig.AutoRemove,
StopSignal: stopSignal,