How to prevent docker error 137 on AWS Lightsail? How to prevent docker error 137 on AWS Lightsail? docker docker

How to prevent docker error 137 on AWS Lightsail?


The 137 exit code is actually from the linux kernel, not from docker. It means your process ran out of memory and got killed. Probably lots of the processes that run during the build will use more than 512M of RAM maybe even one or two gigabytes. You should use an instance with more RAM and the issue should resolve itself.