Skip to content

Latest commit

 

History

History
28 lines (24 loc) · 939 Bytes

README.md

File metadata and controls

28 lines (24 loc) · 939 Bytes

Docker-systemd

A collection of enhanced Dockerfiles for various operating system images with an ability to run systemd

Requirements

An image to be built and run requires docker - containerization platform. Check upstream documentation for how to install docker on your system

How to build

To build an image from the repository root path, replace or set a variable ${os} and run

docker build \
  --file ${os}/Dockerfile \
  --tag ${os}:systemd .

How to run

To successfully start an image you must provide number of filesystems mounted/bindmounted inside a container

$ docker run \
  --detach \
  --name=${os}-systemd \
  --mount type=bind,source=/sys/fs/cgroup,target=/sys/fs/cgroup \
  --mount type=bind,source=/sys/fs/fuse,target=/sys/fs/fuse \
  --mount type=tmpfs,destination=/run \
  --mount type=tmpfs,destination=/run/lock hippolab/${os}:systemd