Created
June 1, 2017 20:47
-
-
Save matheuslc/eeefbf3157b100d456029e896d996870 to your computer and use it in GitHub Desktop.
How to increase your swap memory
This file contains 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
$ docker-machine ssh | |
$ export SWAPFILE=/mnt/sda1/swapfile | |
$ sudo dd if=/dev/zero of=$SWAPFILE bs=1G count=4 | |
$ sudo mkswap $SWAPFILE | |
$ sudo chmod 600 $SWAPFILE | |
$ sudo swapon $SWAPFILE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment