sagemaker-studio-image-build-cli icon indicating copy to clipboard operation
sagemaker-studio-image-build-cli copied to clipboard

The Command returned non-zero code: 137

Open psonpal opened this issue 3 years ago • 1 comments

Hi, I am using sm-docker to build my custom environment image in aws sagemaker studio. However while solving environment it gets Killed with error code 137. I tried to do research and found out, that can be because of memory limit and we can specify memory in docker command. I am not sure how to do that with sm-docker command. Is there anything already there like passing an argument for that which I am missing? Thanks.

psonpal avatar Mar 16 '22 16:03 psonpal

It's not documented, but I found the relevant CLI option in the code and it worked for me: https://github.com/aws-samples/sagemaker-studio-image-build-cli/blob/87c25051ab033dc81ae1f388515315a70b701157/sagemaker_studio_image_build/cli.py#L95-L101

rmontroy avatar May 04 '22 16:05 rmontroy