Sign inSign up

danielguerra/ubuntu-init

By danielguerra

Updated over 8 years ago

Ubuntu bionic with init systemd running with or without the --privileged option.

Image
0

407

danielguerra/ubuntu-init repository overview

ubuntu-init

Ubuntu bionic with init systemd running without the --privileged option.

You can run it privileged too.

e.g. service myservice start , in docker

Usage

  • Start an ubuntu server without privileges init runs, but you have to start services uuidd doesn't run.
docker run --name init-server -d --tmpfs /tmp --tmpfs /run -v /sys/fs/cgroup:/sys/fs/cgroup:ro danielguerra/ubuntu-init
  • Start an ubuntu with SYS_ADMIN capability init runs, but you have to start services uuidd runs.
docker run --cap-add=SYS_ADMIN --name init-server -d --tmpfs /tmp --tmpfs /run -v /sys/fs/cgroup:/sys/fs/cgroup danielguerra/ubuntu-init
  • Start an ubuntu with --privileged init runs, services start automatic uuidd runs.
docker run --privileged --name init-server -d  danielguerra/ubuntu-init
  • Get a terminal on the init host
docker exec -ti init-server bash

--cap-add=SYS_ADMIN -e "container=docker" -v /sys/fs/cgroup:/sys/fs/cgroup

Tag summary

Content type

Image

Digest

Size

88.9 MB

Last updated

over 8 years ago

docker pull danielguerra/ubuntu-init