Closed ancebfer closed 1 year ago
Found problem with strace:
execve("/usr/local/bin/iptables", ["iptables", "--version"], 0x7fff18f1eb88 /* 46 vars */) = -1 ENOENT (No existe el fichero o el directorio)
execve("/usr/bin/iptables", ["iptables", "--version"], 0x7fff18f1eb88 /* 46 vars */) = -1 ENOENT (No existe el fichero o el directorio)
execve("/bin/iptables", ["iptables", "--version"], 0x7fff18f1eb88 /* 46 vars */) = -1 ENOENT (No existe el fichero o el directorio)
execve("/usr/local/games/iptables", ["iptables", "--version"], 0x7fff18f1eb88 /* 46 vars */) = -1 ENOENT (No existe el fichero o el directorio)
execve("/usr/games/iptables", ["iptables", "--version"], 0x7fff18f1eb88 /* 46 vars */) = -1 ENOENT (No existe el fichero o el directorio)
execve("/usr/sbin/iptables", ["iptables", "--version"], 0x7fff18f1eb88 /* 46 vars */) = -1 ENOENT (No existe el fichero o el directorio)
exit_group(127) = ?
+++ exited with 127 +++
Debian podman package (https://packages.debian.org/bookworm/podman) only suggest iptables package therefore it is not installed by default.
After installing iptables podman-compose works right:
~/podman-compose-devel/examples/hello-app$ podman-compose up -d
['podman', '--version', '']
using podman version: 4.3.1
** excluding: set()
['podman', 'network', 'exists', 'hello-app_default']
podman run --name=hello-app_web_1 -d --label io.podman.compose.config-hash=123 --label io.podman.compose.project=hello-app --label io.podman.compose.version=0.0.1 --label com.docker.compose.project=hello-app --label com.docker.compose.project.working_dir=/home/devel/podman-compose-devel/examples/hello-app --label com.docker.compose.project.config_files=docker-compose.yaml --label com.docker.compose.container-number=1 --label com.docker.compose.service=web --net hello-app_default --network-alias web -p 8080:8080 gcr.io/google-samples/hello-app:1.0
4aa5362e8ee96708284d4850e093b9fd7833652316985a2882d187fe454258fd
exit code: 0
~/podman-compose-devel/examples/hello-app$ podman-compose logs
['podman', '--version', '']
using podman version: 4.3.1
podman logs hello-app_web_1
2023/01/01 18:03:34 Server listening on port 8080
exit code: 0
For the next person who runs into this, iptables must not only be installed, but be on $PATH when running it as root -- ensure /sbin is on $PATH when running iptables. When running as a regular user, it doesn't seem to matter. How bizarre.
Describe the bug hello-app example (from examples/hello-app/ folder) not started on Debian Bookworm. It always finish with error: Error: unable to start container X: netavark: No such file or directory (os error 2)
It doesn't seem to be a bug in podman because the example runs correctly when launched directly with podman:
To Reproduce Steps to reproduce the behavior:
Expected behavior "podman-compose up" should start the container without errors.
Actual behavior "podman-compose up" doesn't start the container with errors: Error: unable to start container X: netavark: No such file or directory (os error 2)
Output
Additional context
https://github.com/containers/podman/issues/16956 https://github.com/containers/podman/issues/16958