HUB
Sign inSign up
centos-systemd logo

mageops/centos-systemd

By mageops

•Updated over 6 years ago

Image
0

617

mageops/centos-systemd repository overview

Docker Hub Build Status

⁠systemd-enabled CentOS 7 Docker container

Image for running CentOS 7 in a docker desktop container (for local dev and provisioning testing)

⁠Privileged

docker run \
    --rm \
    --detach \
    --interactive \
    --tty \
    --publish 322:22 \
    --tmpfs /run:exec \
    --tmpfs /tmp:exec \
    --privileged \
    --name centos-systemd \
        mageops/centos-systemd

⁠Unprivileged

Mount host's read-only /sys/fs/cgroup - it's needed for systemd to function at all.

docker run \
    --rm \
    --detach \
    --interactive \
    --tty \
    --publish 322:22 \
    --tmpfs /tmp:exec \
    --tmpfs /run \
    --volume /sys/fs/cgroup:/sys/fs/cgroup:ro \
    --name centos-systemd \
        mageops/centos-systemd
Tag summary
Recent tags
Content type
Image
Digest
Size
129.5 MB
Last updated
over 6 years ago
docker pull mageops/centos-systemd:latest