not like normal crontab -e and 0 3 * * * /usr/bin/docker system prune -f wouldn't work
sudo touch /Library/LaunchDaemons/DockerSystemPrune.plist drop content of DockerSystemPrune.plist in it
and run launchctl load -w /Library/LaunchDaemons/DockerSystemPrune.plist. Done, now every night at 3:00AM
all stopped containers, unused networks, dangling images and build caches will be cleaned up.
Source: Docker Tip #32