Mercurial > hg > Applications > docker-wrapper
changeset 25:8cabc269c3d6
Set ulimit for container
author | atton |
---|---|
date | Thu, 26 Nov 2015 19:45:50 +0900 |
parents | 08da58e4a988 |
children | 324a6b216d70 |
files | ie-docker.c |
diffstat | 1 files changed, 13 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/ie-docker.c Thu Nov 26 18:17:59 2015 +0900 +++ b/ie-docker.c Thu Nov 26 19:45:50 2015 +0900 @@ -298,15 +298,19 @@ return 0; } else if (command_is_matched(argv[1], run_command)) { execv_args[0] = base_exec_command; - execv_args[1] = run_command; - execv_args[2] = "-it"; - execv_args[3] = "-u"; - execv_args[4] = "2015"; - execv_args[5] = "--name"; - execv_args[6] = name; - execv_args[7] = base_image_name; - execv_args[8] = run_shell; - execv_args[9] = NULL; + execv_args[1] = run_command; + execv_args[2] = "-it"; + execv_args[3] = "-u"; + execv_args[4] = "2015"; + execv_args[5] = "--name"; + execv_args[6] = name; + execv_args[7] = "--ulimit"; + execv_args[8] = "nproc=1024"; + execv_args[9] = "--ulimit"; + execv_args[10] = "fsize=17179869184"; + execv_args[11] = base_image_name; + execv_args[12] = run_shell; + execv_args[13] = NULL; } else if (command_is_matched(argv[1], start_command)) { execv_args[0] = base_exec_command; execv_args[1] = start_command;