mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-24 07:26:29 +00:00
Merge pull request #166 from dmerino-va/ulimit-memory-lock
Use DOCKER_LOCKEDMEMORY to set ulimit -l before starting Docker.
This commit is contained in:
commit
09fdb44bf2
2 changed files with 7 additions and 0 deletions
|
@ -9,6 +9,9 @@
|
|||
# Use DOCKER_NOFILE to set ulimit -n before starting Docker.
|
||||
#DOCKER_NOFILE=65536
|
||||
|
||||
# Use DOCKER_LOCKEDMEMORY to set ulimit -l before starting Docker.
|
||||
#DOCKER_LOCKEDMEMORY=unlimited
|
||||
|
||||
# If you need Docker to use an HTTP proxy, it can also be specified here.
|
||||
#export http_proxy="http://127.0.0.1:3128/"
|
||||
|
||||
|
|
|
@ -87,6 +87,10 @@ case "$1" in
|
|||
ulimit -n $DOCKER_NOFILE
|
||||
fi
|
||||
|
||||
if [ -n "$DOCKER_LOCKEDMEMORY" ]; then
|
||||
ulimit -l $DOCKER_LOCKEDMEMORY
|
||||
fi
|
||||
|
||||
log_begin_msg "Starting $DOCKER_DESC: $BASE"
|
||||
start-stop-daemon --start --background \
|
||||
--no-close \
|
||||
|
|
Loading…
Add table
Reference in a new issue