{"id":15602468,"url":"https://github.com/trfore/docker-image","last_synced_at":"2026-03-07T23:02:02.863Z","repository":{"id":158214750,"uuid":"633888017","full_name":"trfore/docker-image","owner":"trfore","description":"Template for Docker Images","archived":false,"fork":false,"pushed_at":"2026-03-04T20:23:35.000Z","size":88,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-05T02:18:20.838Z","etag":null,"topics":["docker-image"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/trfore.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-04-28T14:08:57.000Z","updated_at":"2026-03-04T20:23:37.000Z","dependencies_parsed_at":"2024-12-09T18:23:27.470Z","dependency_job_id":"a51f6a65-cbe1-4497-aa1b-40628aa90514","html_url":"https://github.com/trfore/docker-image","commit_stats":null,"previous_names":["trfore-com/docker-image"],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/trfore/docker-image","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trfore%2Fdocker-image","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trfore%2Fdocker-image/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trfore%2Fdocker-image/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trfore%2Fdocker-image/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trfore","download_url":"https://codeload.github.com/trfore/docker-image/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trfore%2Fdocker-image/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30236045,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T19:01:10.287Z","status":"ssl_error","status_checked_at":"2026-03-07T18:59:58.103Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker-image"],"created_at":"2024-10-03T02:41:37.746Z","updated_at":"2026-03-07T23:02:02.841Z","avatar_url":"https://github.com/trfore.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# docker-{DISTRO}-systemd\n\n[![CI](https://github.com/trfore/docker-image/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/trfore/docker-image/actions/workflows/ci.yml)\n[![CD](https://github.com/trfore/docker-image/actions/workflows/cd.yml/badge.svg?branch=main)](https://github.com/trfore/docker-image/actions/workflows/cd.yml)\n\nA minimal systemd enabled {DISTRO} Docker image for testing Ansible roles with Molecule.\n\nNOTE: This image does NOT contain Ansible tooling, e.g. `ansible-core` or `yamllint`. Thus, the use case is as target\nhost for Ansible controllers or within the Molecule `create`/`converge`/`test` cycle.\n\n## Docker Pull Command\n\n```sh\ndocker pull trfore/docker-{DISTRO}-systemd\n```\n\n## How to Build\n\nThis image is built on Docker Hub automatically any time the upstream OS image is rebuilt, and any time a commit is made\nor merged to the `main` branch. But if you need to build the image on your own locally, do the following:\n\n1. Install [docker]\n2. Clone the repo\n\n   ```sh\n   git clone https://github.com/trfore/docker-{DISTRO}-systemd.git\n   ```\n\n3. `cd` into the directory\n4. Run\n\n   ```sh\n   docker build --tag trfore/docker-{DISTRO}-systemd .\n   ```\n\n## How to Use\n\n### Within Molecule Scenario\n\n- Add the following code to your molecule scenario file, e.g. `molecule/default/molecule.yml`.\n\n  ```yaml\n  platforms:\n    - name: ${MOLECULE_NAME:-instance}\n      image: ${MOLECULE_IMAGE:-trfore/docker-{DISTRO}-systemd}\n      command: ${MOLECULE_COMMAND:-\"\"}\n      tmpfs:\n        - /run\n        - /tmp\n      volumes:\n        - /sys/fs/cgroup:/sys/fs/cgroup:rw\n      cgroupns_mode: host\n      privileged: true\n      pre_build_image: true\n  ```\n\n### Interactively Using Docker\n\n- Install [docker]\n- Build an image locally (see above) or pull from Docker Hub: `docker pull trfore/docker-{DISTRO}-systemd:latest`\n- Run a container from the image:\n\n  ```sh\n  docker run -d -it --name {DISTRO}-systemd --privileged --cgroupns=host --tmpfs=/run --tmpfs=/tmp --volume=/sys/fs/cgroup:/sys/fs/cgroup:rw trfore/docker-{DISTRO}-systemd:latest\n  ```\n\n- Use it, example:\n\n  ```sh\n  docker exec -it {DISTRO}-systemd /bin/bash\n  ```\n\n### Using Podman\n\n- Podman defaults to running containers in systemd mode, `--systemd=true`, and will mount the required tmpfs and cgroup\n  filesystem. See [Podman Docs: Commands `run --systemd`] for details.\n\n  ```sh\n  podman run -d -it --name {DISTRO}-systemd docker.io/trfore/docker-{DISTRO}-systemd:latest\n  ```\n\n## Additional Images\n\n| Base OS                          | Github                      | Docker Hub                         |\n| -------------------------------- | --------------------------- | ---------------------------------- |\n| [CentOS Stream 8][centos-stream] | [docker-centos8-systemd]    | [trfore/docker-centos8-systemd]    |\n| [CentOS Stream 9][centos-stream] | [docker-centos9-systemd]    | [trfore/docker-centos9-systemd]    |\n| [Debian 10][debian]              | [docker-debian10-systemd]   | [trfore/docker-debian10-systemd]   |\n| [Debian 11][debian]              | [docker-debian11-systemd]   | [trfore/docker-debian11-systemd]   |\n| [Debian 12][debian]              | [docker-debian12-systemd]   | [trfore/docker-debian12-systemd]   |\n| [Debian 13][debian]              | [docker-debian13-systemd]   | [trfore/docker-debian13-systemd]   |\n| [Fedora][fedora]                 | [docker-fedora40-systemd]   | [trfore/docker-fedora40-systemd]   |\n| [Ubuntu 20.04][ubuntu]           | [docker-ubuntu2004-systemd] | [trfore/docker-ubuntu2004-systemd] |\n| [Ubuntu 22.04][ubuntu]           | [docker-ubuntu2204-systemd] | [trfore/docker-ubuntu2204-systemd] |\n| [Ubuntu 24.04][ubuntu]           | [docker-ubuntu2404-systemd] | [trfore/docker-ubuntu2404-systemd] |\n\n## Maintainers\n\nTaylor Fore (\u003chttps://github.com/trfore\u003e)\n\n## Acknowledgements\n\nInspired by Jeff Geerling's ([@geerlingguy](https://github.com/geerlingguy)), CentOS 8, Debian 10/11, and Ubuntu 20/22\ndocker images for ansible, [geerlingguy/docker-\\*-ansible](https://github.com/geerlingguy?tab=repositories\u0026q=docker-ansible).\n\n## References\n\n- \u003chttps://ansible.readthedocs.io/projects/molecule/\u003e\n- \u003chttps://ansible.readthedocs.io/projects/molecule/guides/systemd-container/\u003e\n- \u003chttps://developers.redhat.com/blog/2016/09/13/running-systemd-in-a-non-privileged-container\u003e\n- [github runner - ubuntu 22.04] preinstalled software\n- [github runner - ubuntu 24.04] preinstalled software\n\n[centos-stream]: https://quay.io/repository/centos/centos?tab=tags\n[debian]: https://hub.docker.com/_/debian/\n[fedora]: https://quay.io/repository/fedora/fedora?tab=tags\n[docker]: https://docs.docker.com/engine/installation/\n[ubuntu]: https://hub.docker.com/_/ubuntu/\n[docker-centos8-systemd]: https://github.com/trfore/docker-centos8-systemd/blob/main/Dockerfile\n[docker-centos9-systemd]: https://github.com/trfore/docker-centos9-systemd/blob/main/Dockerfile\n[docker-debian10-systemd]: https://github.com/trfore/docker-debian10-systemd/blob/main/Dockerfile\n[docker-debian11-systemd]: https://github.com/trfore/docker-debian11-systemd/blob/main/Dockerfile\n[docker-debian12-systemd]: https://github.com/trfore/docker-debian12-systemd/blob/main/Dockerfile\n[docker-debian13-systemd]: https://github.com/trfore/docker-debian13-systemd/blob/main/Dockerfile\n[docker-fedora40-systemd]: https://github.com/trfore/docker-fedora40-systemd/blob/main/Dockerfile\n[docker-ubuntu2004-systemd]: https://github.com/trfore/docker-ubuntu2004-systemd/blob/main/Dockerfile\n[docker-ubuntu2204-systemd]: https://github.com/trfore/docker-ubuntu2204-systemd/blob/main/Dockerfile\n[docker-ubuntu2404-systemd]: https://github.com/trfore/docker-ubuntu2404-systemd/blob/main/Dockerfile\n[trfore/docker-centos8-systemd]: https://hub.docker.com/r/trfore/docker-centos8-systemd\n[trfore/docker-centos9-systemd]: https://hub.docker.com/r/trfore/docker-centos9-systemd\n[trfore/docker-debian10-systemd]: https://hub.docker.com/r/trfore/docker-debian10-systemd\n[trfore/docker-debian11-systemd]: https://hub.docker.com/r/trfore/docker-debian11-systemd\n[trfore/docker-debian12-systemd]: https://hub.docker.com/r/trfore/docker-debian12-systemd\n[trfore/docker-debian13-systemd]: https://hub.docker.com/r/trfore/docker-debian13-systemd\n[trfore/docker-fedora40-systemd]: https://hub.docker.com/r/trfore/docker-fedora40-systemd\n[trfore/docker-ubuntu2004-systemd]: https://hub.docker.com/r/trfore/docker-ubuntu2004-systemd\n[trfore/docker-ubuntu2204-systemd]: https://hub.docker.com/r/trfore/docker-ubuntu2204-systemd\n[trfore/docker-ubuntu2404-systemd]: https://hub.docker.com/r/trfore/docker-ubuntu2404-systemd\n[github runner - ubuntu 22.04]: https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2204-Readme.md\n[github runner - ubuntu 24.04]: https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2404-Readme.md\n[Podman Docs: Commands `run --systemd`]: https://docs.podman.io/en/latest/markdown/podman-run.1.html#systemd-true-false-always\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrfore%2Fdocker-image","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrfore%2Fdocker-image","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrfore%2Fdocker-image/lists"}