Skip to content

Instantly share code, notes, and snippets.

@matheuslc
Created June 1, 2017 20:47
Show Gist options
  • Save matheuslc/eeefbf3157b100d456029e896d996870 to your computer and use it in GitHub Desktop.
Save matheuslc/eeefbf3157b100d456029e896d996870 to your computer and use it in GitHub Desktop.
How to increase your swap memory
$ 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