Docker Community Forums

Share and learn in the Docker community.

Licence for Dockerfile

I want to share my Dockerfile on GitHub.

Which licence would you recommend for Dockerfiles?

(Disclaimer: I am not a lawyer and this is not legal advice.)

That depends on what tradeoffs you want to make.

If you care about software freedom first and foremost, the GPL V3 is designed to protect the freedom of the software you are releasing and prevent for-profit hijacking of your work. If you only care about shareability and re-use, and are willing to budge on software freedom, the MIT and Apache licenses are both permissive and popular for this purpose. But there are others such as BSD, AGPL, MPL etc. that you can look into if you like.

1 Like