Docker on Lima is one of the alternative solutions to Docker Desktop for Mac.
Many people have already described the steps to set up for that.
In addition to such a standard setup, this guide describes how to set up a Docker environment which can run multi-arch images.
For example, you will be able to run linux/amd64
images on your M1 Mac.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# portable cronjob wrapper to ensure : | |
# | |
# * only one process at the time (prevents process-overlap, handy for unique cron workers) | |
# * reverse cron's email behaviour (only emails on error) | |
# * ultraportable: only relies on flock, not on debians 'start-stop-daemon' or centos 'daemon' | |
# * nicelevel to tame cpu usage | |
# | |
# usage: cronjoblock <application> [args] | |
# example: cronjoblock /home/foo/myscript & | |
# cronjoblock /home/foo/myscript & <--- 'myscript' will only run when the previous run is finished |