Sign inSign up

devizervlad/systemd-on-fedora

By devizervlad

Updated about 7 years ago

It is for testing SystemD services and their installers using docker

Image
0

3.3K

devizervlad/systemd-on-fedora repository overview

About

It is for testing SystemD services and their installers using docker

Versions

Ver (and tag) | SystemD Version | libc version | libstdc++ version

  • | --------------- | ------------ | ----------------- 26 | 233 | 2.25 | 3.4.24 27 | 234 | 2.26 | 3.4.24 28 | 238 | 2.27 | 3.4.25 29 | 239 | 2.28 | 3.4.25 30 | 241 | 2.29 | 3.4.26 31 | 242 | 2.29.9000 | 3.4.26
Howto
# we will use 31st version of Fedora
ver=31

# create container and launch its default command - SystemD
docker run -t -d --name "systemd-on-fedora-${ver}" --rm -v /sys/fs/cgroup:/sys/fs/cgroup:ro devizervlad/systemd-on-fedora:${ver}

# make sure SystemD is completely loaded, usually it takes about 1 second
wait_for_systemd="printf 'Wait for systemd on fedora "$ver" '; ok=''; for i in {1..9}; do pgrep systemd-journal >/dev/null && ok='true' && echo ' OK' && break || printf '.'; sleep 1; done; [ -z \$ok ] && echo ' Fail';"
docker exec -t "systemd-on-fedora-${ver}" bash -c "$wait_for_systemd"; 

# last, SystemD initialization is completed and we can install, start, check the status and read logs of a SystemD service
# for illustration purposes we just display the full SystemD's journal
docker exec "systemd-on-fedora-${ver}" bash -c "journalctl -b";

Tag summary

Content type

Image

Digest

Size

94.7 MB

Last updated

about 7 years ago

docker pull devizervlad/systemd-on-fedora:31