Skip to content

Commit 859e22f

Browse files
authored
Update faq.md
Add OutOfMemoryError: Container killed due to memory usage
1 parent 2177e38 commit 859e22f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/faq.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,8 @@ services:
151151
test: ["CMD", "./my-healthcheck"]
152152
```
153153

154-
### The build aborted with an out-of-memory error
154+
### The build aborted with OutOfMemoryError: Container killed due to memory usage
155+
155156
The image build might fail if the build process uses too much memory. The first thing to try is to limit the size of your project by excluding unnecessary files: the easiest way is to create a `.dockerignore` file that excludes irrelevatn files. Note that Defang will use a default `.dockerignore` file if you don't have one, but that default might not work for some projects and it's always better to make a `.dockerignore` file specific to your project.
156157

157158
If that doesn't work, you can try to increase the memory available to the build process by adding a field `shm_size` to the `build` section in your `compose.yaml` file:

0 commit comments

Comments
 (0)