Skip to content

Instantly share code, notes, and snippets.

@matheuslc
Created June 1, 2017 20:47
Show Gist options
  • Select an option

  • Save matheuslc/eeefbf3157b100d456029e896d996870 to your computer and use it in GitHub Desktop.

Select an option

Save matheuslc/eeefbf3157b100d456029e896d996870 to your computer and use it in GitHub Desktop.

Revisions

  1. matheuslc created this gist Jun 1, 2017.
    6 changes: 6 additions & 0 deletions increase-swap.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    $ 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