a script to run docker-compose.yml using podman
Go to file
2019-03-05 22:43:32 +02:00
examples initial work 2019-03-04 11:30:14 +02:00
.gitignore Initial commit 2019-03-04 10:52:30 +02:00
LICENSE Initial commit 2019-03-04 10:52:30 +02:00
podman-compose.py update readme and remove sleep 2019-03-05 22:43:32 +02:00
README.md update readme and remove sleep 2019-03-05 22:43:32 +02:00

PodMan-Compose

A script to run docker-compose.yml using podman, doing necessary mapping to make it work rootless.

NOTE

it's still underdevelopment and does not work yet.

Mappings

  • 1podfw - create all containers in one pod (inter-container communication is done via localhost), doing port mapping in that pod
  • 1pod - create all containers in one pod, doing port mapping in each container
  • identity - no mapping
  • hostnet - use host network, and inter-container communication is done via host gateway and published ports
  • cntnet - create a container and use it via --network container:name (inter-container communication via localhost)
  • publishall - publish all ports to host (using -P) and communicate via gateway

Examples

Working Example

Using host network and localhost works as in

$ ./podman-compose.py -t hostnet -f examples/awx-working/docker-compose.yml up
$ # wait for a while, because there is not dependency then
$ podman restart awx-working_awx_task_1
$ podman restart awx-working_awx_web_1

in progress work

./podman-compose.py -t cntnet -f examples/awx/docker-compose.yml up