From 5b408e6e6326ccaf0dc2c3b713116676bd3a83e4 Mon Sep 17 00:00:00 2001 From: Tudor Stanciu Date: Fri, 18 Feb 2022 09:35:30 +0200 Subject: [PATCH] set docker ram memory limit in release script --- release.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/release.sh b/release.sh index c59cd7b..4aadeda 100644 --- a/release.sh +++ b/release.sh @@ -11,7 +11,8 @@ echo "Stop old container." docker stop identity-server && docker rm identity-server echo "Run new container." -docker run -d --name identity-server --restart=always -p 5007:80 alpine-nexus:8500/identity/identity-server:$version +docker run -d --name identity-server --restart=always --memory 500mb --memory-reservation 100mb -p 5007:80 alpine-nexus:8500/identity/identity-server:$version +# https://phoenixnap.com/kb/docker-memory-and-cpu-limit echo "Remove old image identity-server:$oldver." docker rmi alpine-nexus:8500/identity/identity-server:$oldver