From: Michael Brown Date: Fri, 6 Apr 2018 20:12:17 +0000 (-0400) Subject: launcher: launch containers by default with 512MB shmsize X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=27c210121a73f66c48c9ab40a6624a54feeeee84;p=discourse_docker.git launcher: launch containers by default with 512MB shmsize --- diff --git a/launcher b/launcher index e7ff177..97ea535 100755 --- a/launcher +++ b/launcher @@ -536,7 +536,7 @@ run_start() { fi set -x - $docker_path run $links $attach_on_run $restart_policy "${env[@]}" "${labels[@]}" -h "$hostname" \ + $docker_path run --shm-size=512m $links $attach_on_run $restart_policy "${env[@]}" "${labels[@]}" -h "$hostname" \ -e DOCKER_HOST_IP="$docker_ip" --name $config -t $ports $volumes $mac_address $docker_args $user_args \ $run_image $boot_command @@ -581,7 +581,7 @@ run_bootstrap() { echo $run_command unset ERR - (exec echo "$input" | $docker_path run $user_args $links "${env[@]}" -e DOCKER_HOST_IP="$docker_ip" --cidfile $cidbootstrap -i -a stdin -a stdout -a stderr $volumes $image \ + (exec echo "$input" | $docker_path run --shm-size=512m $user_args $links "${env[@]}" -e DOCKER_HOST_IP="$docker_ip" --cidfile $cidbootstrap -i -a stdin -a stdout -a stderr $volumes $image \ /bin/bash -c "$run_command") || ERR=$? unset FAILED