Skip to content

Instantly share code, notes, and snippets.

@timothystewart6
Last active February 24, 2019 23:50
Show Gist options
  • Select an option

  • Save timothystewart6/b7fd735eb8ed66cde72624fa74142b07 to your computer and use it in GitHub Desktop.

Select an option

Save timothystewart6/b7fd735eb8ed66cde72624fa74142b07 to your computer and use it in GitHub Desktop.

Revisions

  1. timothystewart6 revised this gist Feb 24, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion docker-cleanup.sh
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    #!/bin/bash
    docker rmi $(docker images -q -f dangling=true)
    # chmod 755 ~/docker-cleanup.sh.
    # chmod +x ~/docker-cleanup.sh.
    # crontab -e
    # every day at midnight
    # 0 12 * * * ~/docker-cleanup.sh > /dev/null 2>&1
  2. timothystewart6 created this gist Feb 24, 2019.
    6 changes: 6 additions & 0 deletions docker-cleanup.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    #!/bin/bash
    docker rmi $(docker images -q -f dangling=true)
    # chmod 755 ~/docker-cleanup.sh.
    # crontab -e
    # every day at midnight
    # 0 12 * * * ~/docker-cleanup.sh > /dev/null 2>&1