docker: earthly fails with ‘security.insecure is not allowed’


If you’re using earthly and it fails with a message like failed: unlazy force execution: failed to load LLB: security.insecure is not allowed, then all you need to do is use earthly -P or earthly --allow-privileged. The log output explains this later but if you’re like me and fixate on the error message, Google doesn’t find anything helpful.