# Build the image docker build -t lighttpd . # Allow containers to manage cgroups - needed for systemd init # This is way safer that running privileged setsebool -P container_manage_cgroup 1 # Run the container docker run -ti -p8000:80 lighttpd # You'll see the output of systemd showing the successful loading of the # lighttpd services and the other processes it does on startup (like journald, etc) # The network ports above don't work as intended. From inside the container I can # `curl localhost` just fine. I can't `curl localhost:8000` from the host. I'll update this gist when I figure it out.