Skip to content

Files

Latest commit

f3cbde6 · May 19, 2016

History

History
15 lines (13 loc) · 454 Bytes

README.md

File metadata and controls

15 lines (13 loc) · 454 Bytes

Example image for testing official CentOS 7 systemd container

Build it

docker build --rm --no-cache -t httpd .

Run it in Background

docker kill httpd && docker rm httpd && docker run --privileged --name httpd -v /sys/fs/cgroup:/sys/fs/cgroup:ro -p 80:80 -d  httpd

Run it in Foreground

docker kill httpd && docker rm httpd && docker run --privileged --name httpd -v /sys/fs/cgroup:/sys/fs/cgroup:ro -p 80:80 -ti httpd