Skip to content

lean-delivery/docker-systemd

Repository files navigation

docker-systemd

Docker images with systemd support

A Docker images based on ubuntu, centos that runs systemd with a minimal set of services.

This image is meant for development use only. We strongly recommend against running it in production!

Supported tags

ubuntu:

  • ubuntu-22.04
  • ubuntu-20.04
  • ubuntu-18.04
  • ubuntu-16.04
  • ubuntu-14.04

centos:

  • centos7

Aim

These images were created for using with molecule tool when do testing with docker driver.

To start a service which requires systemd, configure molecule.yml with a systemd compliant image, capabilities, volumes, and command as follows.

- name: test-instance-centos
    image: leandelivery/docker-systemd:centos7
    privileged: True
    security_opts:
      - seccomp=unconfined
    volumes:
      - /sys/fs/cgroup:/sys/fs/cgroup:ro
    tmpfs:
      - /tmp
      - /run
    capabilities:
      - SYS_ADMIN
    groups:
      - rhel_family

- name: test-instance-ubuntu
    image: leandelivery/docker-systemd:ubuntu-18.04
    privileged: True
    security_opts:
      - seccomp=unconfined
    volumes:
      - /sys/fs/cgroup:/sys/fs/cgroup:ro
    tmpfs:
      - /tmp
      - /run
    capabilities:
      - SYS_ADMIN
    groups:
      - debian_family

License

Apache2

Author Information

authors:

About

Docker images with systemd support

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published