Skip to content

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

Notifications You must be signed in to change notification settings

mageops/docker-centos-systemd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published