Sign inSign up

eniocarboni/docker-ubuntu-systemd

By eniocarboni

•Updated over 4 years ago

Ubuntu LTS Docker container with systemd, useful for tests with ansible and molecule

Image
1

10K+

eniocarboni/docker-ubuntu-systemd repository overview

⁠Ubuntu 22.04/20.04/18.04/16.04 LTS Docker Image with systemd

Build GPL License Donate

Ubuntu 22.04 LTS Docker container with systemd, useful for tests with ansible especially with molecule

⁠Tags

⁠How to Build

  • Verify if Docker is installed⁠.
  • Run on main branch: docker build -t docker-ubuntu-systemd:22.04 -t docker-ubuntu-systemd:latest .
  • Run on 20.04 branch: docker build -t docker-ubuntu-systemd:20.04 -t docker-ubuntu-systemd:focal .
  • Run on 18.04 branch: docker build -t docker-ubuntu-systemd:18.04 -t docker-ubuntu-systemd:bionic .
  • Run on 16.04 branch: docker build -t docker-ubuntu-systemd:16.04 -t docker-ubuntu-systemd:xenial .
  • Verify image: docker images

⁠How to Use

  • docker pull eniocarboni/docker-ubuntu-systemd:latest (or use the image you built earlier).
  • docker run --detach --privileged --volume=/sys/fs/cgroup:/sys/fs/cgroup:ro eniocarboni/docker-ubuntu-systemd:latest

View the run container with

  • docker ps

Enter in the container with:

  • docker exec -it <container_id> bash

Kill container with:

  • docker kill <container_id>

Remove container with:

  • docker image rm -f <container_id>

⁠Author

Created in 2022 by Enio Carboni

⁠License

GNU GENERAL PUBLIC LICENSE (see LICENSE⁠ file)

Tag summary

Content type

Image

Digest

Size

71.4 MB

Last updated

over 4 years ago

docker pull eniocarboni/docker-ubuntu-systemd