Skip to content

Commit

Permalink
README: Add out-of-memory trouble advice for Docker
Browse files Browse the repository at this point in the history
It seems like OOM issues are more common when building stuff with Nix
within Docker. I just reencountered this issue myself.
  • Loading branch information
ibbem authored and pmbittner committed Jul 3, 2024
1 parent e718f44 commit b296a8e
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,26 @@ There are two possible causes if you do not see the mathematical symbols:
- Your terminal does not support UTF-8 correctly.
In this case you have to switch to a different terminal.

# Docker fails due to signal 9

If you see an error like
```
failed due to signal 9 (Killed)
------
Dockerfile:19
--------------------
17 |
18 | # Verify all proofs and build the demo.
19 | >>> RUN nix-build
20 |
21 | # Copy the demo with all runtime dependencies (ignoring build-time dependencies)
--------------------
ERROR: failed to solve: process "/bin/sh -c nix-build" did not complete successfully: exit code: 100
```
during a Docker build, you might have encountered an out of memory issue.
Try to rerun the same command after closing other applications which might comsume a lot of RAM.
In some cases it may also be necessary to disable some kind of out-of-memory killer (also known as OOM killer or OOM deamon) but use this option with caution.

[agda-badge-version-svg]: https://img.shields.io/badge/agda-v2.6.4.3-blue.svg
[agda-badge-version-url]: https://github.com/agda/agda/releases/tag/v2.6.4.3
[ghcup]: https://www.haskell.org/ghcup/
Expand Down

0 comments on commit b296a8e

Please sign in to comment.