Arch Linux image with systemd
703
Image is based on antergos/archlinux-base-devel
To create an image that you can use to run an application capable of being managed by systemd:
Example Dockerfile for Apache
FROM antergos/archlinux-systemd
RUN pacman -S --noconfirm httpd; pacman -Sc --noconfirm; systemctl enable httpd.service
EXPOSE 80
CMD ["/usr/sbin/init"]
Save the Dockerfile in an empty directory from which run:
docker build -t arch-httpd .
Now start the container:
docker run --privileged -ti -v /sys/fs/cgroup:/sys/fs/cgroup:ro -p 80:80 arch-httpd
These instructions are from this blog post (thank him!):
http://rhatdan.wordpress.com/2014/04/30/running-systemd-within-a-docker-container/
Content type
Image
Digest
sha256:fc9703e48…
Size
249.6 MB
Last updated
almost 11 years ago
docker pull antergos/archlinux-systemd