A container that serves static files at http://munki/repo using nginx.
nginx expects the munki repo content to be located at /munki_repo. Use a data container and the --volumes-from option to add files.
Create a data-only container to host the Munki repo:
docker run -d --name munki-data --entrypoint /bin/echo nmcspadden/munki Data-only container for munki
For more info on data containers read Tom Offermann's blog post and the official documentation.
If you have an existing Munki repo on the host, you can mount that folder directly by using this option instead of --volumes-from:
-v /path/to/munki/repo:/munki_repo
Otherwise, use --volumes-from the data container:
docker run -d --name munki --volumes-from munki-data -p 80:80 -h munki nmcspadden/munki
The easiest way to populate the Munki server is to hook the munki-data volume up to a Samba container and share it out to a Mac, using my SMB-Munki container:
docker pull nmcspadden/smb-munkidocker run -d -p 445:445 --volumes-from munki-data --name smb nmcspadden/smb-munkichown -R nobody:nogroup /munki_repochmod -R ugo+rwx /munki_repoContent type
Image
Digest
sha256:160d12796…
Size
38.1 MB
Last updated
almost 11 years ago
docker pull nmcspadden/munki