Skip to content

Instantly share code, notes, and snippets.

@maxcountryman
Created June 1, 2021 14:51
Show Gist options
  • Save maxcountryman/18e7f9599cb7f2a277a7d7fe0ea93415 to your computer and use it in GitHub Desktop.
Save maxcountryman/18e7f9599cb7f2a277a7d7fe0ea93415 to your computer and use it in GitHub Desktop.
launchctl load -w /Library/LaunchDaemons/com.docker.system-prune.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.docker.system-prune</string>
<key>Program</key>
<string>/usr/local/bin/docker</string>
<key>ProgramArguments</key>
<array>
<string>system</string>
<string>prune</string>
<string>-f</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>StartCalendarInterval</key>
<dict>
<key>Hour</key>
<integer>1</integer>
<key>Minute</key>
<integer>0</integer>
</dict>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment