Sign inSign up

lj020326/ubuntu2004-systemd-python

By lj020326

Updated about 1 year ago

Ubuntu 20.04 image with systemd and python enabled

Image
1

5.0K

lj020326/ubuntu2004-systemd-python repository overview

Ubuntu 20.04 image with systemd and python enabled

You can use this image as a base container to run systemd services and python installed (e.g., ansible, etc).

Supported tags

  • latest

Usage

  1. Run the container as a daemon

docker run -d --name systemd-ubuntu --tmpfs /tmp --tmpfs /run --tmpfs /run/lock -v /sys/fs/cgroup:/sys/fs/cgroup:ro lj020326/ubuntu2004-systemd-python

or if it doesn't work

docker run -d --name systemd-ubuntu --privileged -v /sys/fs/cgroup:/sys/fs/cgroup:ro lj020326/ubuntu2004-systemd-python

  1. Enter to the container

docker exec -it systemd-ubuntu sh

  1. Remove the container

docker rm -f systemd-ubuntu

Tag summary

Content type

Image

Digest

sha256:5d808dfe6

Size

371.2 MB

Last updated

about 1 year ago

docker pull lj020326/ubuntu2004-systemd-python