Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
Dockerfile
README.md

README.md

dockerfiles-fedora-systemd

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/

Get Docker version

# docker version

To build:

Copy the sources down and do the build-

# docker build -t fedora/sysapache .

To run docker in a container you need to mount cgroup file system volume:

docker run -it --rm -p 80:80 -v /sys/fs/cgroup:/sys/fs/cgroup fedora/sysapache

To confirm the port that the container is listening on:

# docker ps

To test, open another terminal and issue:

# curl http://localhost

You can’t perform that action at this time.