Fedora dockerfile for apache working with systemd For more information on systemd inside Docker containers, please see: http://rhatdan.wordpress.com/2014/04/30/running-systemd-within-a-docker-container/
Tested on Docker 0.11.1
Get Docker version
# docker version
To build:
Copy the sources down and do the build-
# docker build -t systemd/httpd .
To run docker in a container you need to mount cgroup file system volume:
docker run -d --privileged -p 80:80 -ti -e 'container=docker' -v /sys/fs/cgroup:/sys/fs/cgroup:ro systemd/httpd
To confirm the port that the container is listening on:
# docker ps
To test, open another terminal and issue:
# curl http://localhost