#!/bin/bash
set -e

if [ ! -f $CONFIG ]; then
	echo "\"$CONFIG\" file missing"
	exit 1
fi

sudo docker run -d \
	-p $HOST_PORT:$CONTAINER_PORT \
	-v $CONFIG:/etc/imgry.conf \
	-v /data:/data \
	--memory-swap=-1 \
	--restart=always \
	--name $NAME $IMAGE

#!/bin/bash
set -e

if [ ! -f $CONFIG ]; then
	echo "\"$CONFIG\" file missing"
	exit 1
fi

sudo docker run -d \
	-p $HOST_PORT:$CONTAINER_PORT \
	-v $CONFIG:/etc/imgry.conf \
	-v /data:/data \
	--memory-swappines=0 \
	--restart=always \
	--name $NAME $IMAGE

Disable swap for container app
Disable swap for container app
