Skip to content

Commit

Permalink
docs: add podman example and fix url links
Browse files Browse the repository at this point in the history
  • Loading branch information
trfore committed Mar 31, 2024
1 parent e8bb9f9 commit 7f24bca
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ platforms:
pre_build_image: true
```
### Interactively
### Interactively Using Docker
1. Install [docker]
2. Build an image locally (see above) or pull from Docker Hub: `docker pull trfore/docker-ubuntu2204-systemd:latest`
Expand All @@ -60,7 +60,13 @@ docker run -d -it --name ubuntu2204-systemd --privileged --cgroupns=host --tmpfs

4. Use it, ex: `docker exec -it ubuntu2204-systemd /bin/bash`

## Systemd with Cgroup V1 or V2
### Using Podman

- Podman defaults to running containers in systemd mode, `--systemd=true`, and will mount the required tmpfs and cgroup filesystem. See [Podman Docs: Commands `run --systemd`] for details.

```sh
podman run -d -it --name debian12-systemd docker.io/trfore/docker-debian12-systemd:latest
```

## Additional Images

Expand All @@ -72,6 +78,7 @@ docker run -d -it --name ubuntu2204-systemd --privileged --cgroupns=host --tmpfs
| [Debian 12][debian] | [docker-debian12-systemd] | [trfore/docker-debian12-systemd] |
| [Ubuntu 20.04][ubuntu] | [docker-ubuntu2004-systemd] | [trfore/docker-ubuntu2004-systemd] |
| [Ubuntu 22.04][ubuntu] | [docker-ubuntu2204-systemd] | [trfore/docker-ubuntu2204-systemd] |
| [Ubuntu 24.04][ubuntu] | [docker-ubuntu2404-systemd] | [trfore/docker-ubuntu2404-systemd] |

## Maintainers

Expand Down Expand Up @@ -102,11 +109,14 @@ Inspired by Jeff Geerling's ([@geerlingguy](https://github.com/geerlingguy)), Ce
[docker-debian12-systemd]: https://github.com/trfore/docker-debian11-systemd/blob/main/Dockerfile
[docker-ubuntu2004-systemd]: https://github.com/trfore/docker-ubuntu2004-systemd/blob/main/Dockerfile
[docker-ubuntu2204-systemd]: https://github.com/trfore/docker-ubuntu2204-systemd/blob/main/Dockerfile
[docker-ubuntu2404-systemd]: https://github.com/trfore/docker-ubuntu2404-systemd/blob/main/Dockerfile
[trfore/docker-centos8-systemd]: https://hub.docker.com/r/trfore/docker-centos8-systemd
[trfore/docker-debian10-systemd]: https://hub.docker.com/r/trfore/docker-debian10-systemd
[trfore/docker-debian11-systemd]: https://hub.docker.com/r/trfore/docker-debian11-systemd
[trfore/docker-debian12-systemd]: https://hub.docker.com/r/trfore/docker-debian12-systemd
[trfore/docker-ubuntu2004-systemd]: https://hub.docker.com/r/trfore/docker-ubuntu2004-systemd
[trfore/docker-ubuntu2204-systemd]: https://hub.docker.com/r/trfore/docker-ubuntu2204-systemd
[github runner - ubuntu 20.04]: https://github.com/actions/runner-images/blob/main/images/linux/Ubuntu2004-Readme.md
[github runner - ubuntu 22.04]: https://github.com/actions/runner-images/blob/main/images/linux/Ubuntu2204-Readme.md
[trfore/docker-ubuntu2404-systemd]: https://hub.docker.com/r/trfore/docker-ubuntu2404-systemd
[github runner - ubuntu 20.04]: https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2004-Readme.md
[github runner - ubuntu 22.04]: https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2204-Readme.md
[Podman Docs: Commands `run --systemd`]: https://docs.podman.io/en/latest/markdown/podman-run.1.html#systemd-true-false-always

0 comments on commit 7f24bca

Please sign in to comment.