Sign inSign up

jerryxhx/ubuntu-systemd

By jerryxhx

Updated about 6 years ago

Image
1

42

jerryxhx/ubuntu-systemd repository overview

Systemd-enabled Ubuntu image for Docker

Docker Pulls

About

This Docker image enhances the ubuntu image to be run like a VM or LXC container including systemd as init system and other utilities.

Usage

For ubuntu LTS run:

docker run -d -it                       \
    -v /sys/fs/cgroup:/sys/fs/cgroup:ro \
    jerryxhx/ubuntu-systemd:latest
Run at Docker for Mac

As the image mounts the systemd cgroup into the container, the host needs to have it mounted already. However, boot2docker doesn't have systemd installed and therefore this cgroup isn't available.

To get the cgroup mounted in the Docker VM, you can login into the VM by running docker-machine ssh and run the following code to apply the patch:

sudo -s
cat >> /var/lib/boot2docker/bootsync.sh <<EOF
mkdir /sys/fs/cgroup/systemd
mount -t cgroup -o none,name=systemd cgroup /sys/fs/cgroup/systemd
EOF
exit

License

This project is licensed under the MIT License.

© 2018-2019 Alexander Haase

Tag summary

Content type

Image

Digest

Size

61.6 MB

Last updated

about 6 years ago

docker pull jerryxhx/ubuntu-systemd