diff --git a/README.md b/README.md index 3ffe449..763b749 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,21 @@ it's still underdevelopment and does not work yet. ## 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 ``` + diff --git a/podman-compose.py b/podman-compose.py index d63ad56..aedbb91 100755 --- a/podman-compose.py +++ b/podman-compose.py @@ -274,7 +274,7 @@ def up(project_name, dirname, pods, containers): args=[ "podman", "pod", "create", "--name={}".format(pod["name"]), - "--share", "cgroup,uts", + "--share", "cgroup,ipc", ] ports = pod.get("ports") or [] for i in ports: @@ -291,7 +291,7 @@ def up(project_name, dirname, pods, containers): print(p.wait()) #print("""podman run -d --pod='{pod}' --name='{name}' '{image}'""".format(**cnt)) # subprocess.Popen(args, bufsize=0, executable=None, stdin=None, stdout=None, stderr=None, preexec_fn=None, close_fds=False, shell=False, cwd=None, env=None, universal_newlines=False, startupinfo=None, creationflags=0) - time.sleep(3600) + time.sleep(1) def main(command, filename, project_name, no_ansi, transform_policy, host_env=None): filename= os.path.realpath(filename)