Exploring how Swift is built have found caffeinate command to prevent the system from sleeping on behalf of a utility.

TIL How To Install and Use Docker on Ubuntu.