https://github.com/polachz/podman-support
Shell scripts to create or remove Podman rootless system services and pods
https://github.com/polachz/podman-support
Last synced: 4 months ago
JSON representation
Shell scripts to create or remove Podman rootless system services and pods
- Host: GitHub
- URL: https://github.com/polachz/podman-support
- Owner: polachz
- License: mit
- Created: 2020-03-15T08:58:59.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-07-29T08:08:32.000Z (over 4 years ago)
- Last Synced: 2024-08-01T13:38:35.353Z (7 months ago)
- Language: Shell
- Size: 12.7 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Podman-Support
Shell scripts to create or remove Podman rootless system services inside podsThis script library allows to create/remove/update rootless container services easily. It is designed to create podman pod and service definition(s) as set of the BASH shell variables and then run bash function to provide required operation.
The repository contains two templates:
- **pod_template.sh** - Create the pod and allows to map it's port(s) to host or remove the pod.
- **service_template.sh** Create or remove the container and systemd service for the containerTo use these templates, copy template to a folder together with *podman_support.sh*, rename the template and then modify the content to fit the container needs. Then by run the shell script created based on the template, you can create or remove the pod or the container and the systemd related service.
If you need to modify the container ot the pod - to upgrade container to latest version or to add a port mapping to the pod for example then you can easily remove current instance then modify the template to reflect new requirements and then re-create the pod or service again.
## pod_template.sh ##
Create the pod (without services) or remove the pod and it's containers if all are already stoppped
## service_template.sh ##