Last active
May 30, 2017 20:02
-
-
Save danielres/48665ab455f8512261a12dfca73bfbca to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fallocate -l 1G /swapfile && \ | |
chmod 600 /swapfile && \ | |
mkswap /swapfile && \ | |
sudo swapon /swapfile && \ | |
swapon --show |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Small docker instances (like digitalocean's 512mb droplet) fail on tasks that require more RAM than available.
This sets a 1Gb swapfile, and allows those tasks to complete.