Thanks for the replies! Just tried these suggestions...
On 7/4/2022 8:28 AM, Muayyad AlSadi wrote:
pi@raspberrypi:~/tripod $ podman run -dt -p 8088:8088/tcp docker.io/library/busybox httpd
-f -h /etc/ -p 8088
Trying to pull docker.io/library/busybox:latest...
Getting image source signatures
Copying blob 7ceae7886eaf done
Copying config 2c4cda7768 done
Writing manifest to image destination
Storing signatures
f35572766e57f7250220d2ca337eb2d690a47bae4279b2d8bb946d504c8f9e4c
pi@raspberrypi:~/tripod $ curl
http://localhost:8088/hosts
curl: (7) Failed to connect to localhost port 8088: Connection refused
pi@raspberrypi:~/tripod $ podman logs busybox
Error: no container with name or ID busybox found: no such container
pi@raspberrypi:~/tripod $
Tried again:
pi@raspberrypi:~/tripod $ podman run -dt -p 8088:8088/tcp docker.io/library/busybox httpd
-f -h /etc/ -p 8088
5a851789c05d18468303484a2d5c8f932f1b789fce086d23fd42b50430243d51
pi@raspberrypi:~/tripod $ podman ps -a
CONTAINER ID IMAGE COMMAND CREATED
STATUS PORTS NAMES
54a005199e38 docker.io/library/httpd httpd-foreground 7 days ago
Exited (139) 7 days ago 0.0.0.0:8088->80/tcp hopeful_buck
787779b20e96 docker.io/library/httpd httpd-foreground 7 days ago
Exited (139) 7 days ago 0.0.0.0:8088->80/tcp pedantic_yonath
f35572766e57 docker.io/library/busybox:latest httpd -f -h /etc/... 3 minutes ago
Exited (139) 3 minutes ago 0.0.0.0:8088->8088/tcp optimistic_archimedes
5a851789c05d docker.io/library/busybox httpd -f -h /etc/... 22 seconds ago
Exited (139) 20 seconds ago 0.0.0.0:8088->8088/tcp trusting_dirac
what is your podman version?
pi@raspberrypi:~/tripod $ podman version
Version: 3.0.1
API Version: 3.0.0
Go Version: go1.15.15
Built: Wed Dec 31 16:00:00 1969
OS/Arch: linux/arm
what is your network stack?
pi@raspberrypi:~/tripod $ podman info | grep -i net
capabilities:
CAP_CHOWN,CAP_DAC_OVERRIDE,CAP_FOWNER,CAP_FSETID,CAP_KILL,CAP_NET_BIND_SERVICE,CAP_SETFCAP,CAP_SETGID,CAP_SETPCAP,CAP_SETUID,CAP_SYS_CHROOT
slirp4netns:
executable: /usr/bin/slirp4netns
package: 'slirp4netns: /usr/bin/slirp4netns'
slirp4netns version 1.0.1
pi@raspberrypi:~/tripod $
pi@raspberrypi:~/tripod $ podman info --format {{.Host.NetworkBackend}}
Error: template: info:1:7: executing "info" at <.Host.NetworkBackend>:
can't evaluate field NetworkBackend in type *define.HostInfo
pi@raspberrypi:~/tripod $ podman network ls
NAME VERSION PLUGINS
pi@raspberrypi:~/tripod $
mine is 4.x
and my network is netavark
Looks like mine is 3.0.1, and netavark requires 4.0.0.
I supposedly installed the latest podman, only a week ago - but for the Pi Zero W's
32-bit ARMv6. Everyone seems to provide v6 versions of things, and they seem to install,
but I'm getting more and more convinced that they just don't work.
On Mon, Jul 4, 2022 at 4:56 PM Paul Holzinger <pholzing(a)redhat.com
<mailto:pholzing@redhat.com>> wrote:
Hi Loren,
Check the container logs with `podman logs <Container ID or name> `.
pi@raspberrypi:~/tripod $ podman logs 787779b20e96
pi@raspberrypi:~/tripod $ podman logs 54a005199e38
pi@raspberrypi:~/tripod $ podman logs httpd
Error: no container with name or ID httpd found: no such container
pi@raspberrypi:~/tripod $ podman logs docker.io/library/httpd
Error: no container with name or ID docker.io/library/httpd found: no such container
pi@raspberrypi:~/tripod $
So the ID numbers don't show errors, the names do. Not sure what that means... But
seems there are no logs. I suspect since the run ends in under two seconds, there really
aren't any logs.
Where would the logs be stored in my filesystem? Would the names include
"podman"?
Searching for logs, I saw:
pi@raspberrypi:~ $ cat /etc/cni/net.d/87-podman-ptp.conflist
{
"cniVersion": "0.4.0",
"name": "podman",
"plugins": [
{
"type": "ptp",
"Documentation":
"/usr/share/doc/containernetworking-plugins/main_ptp.md",
"ipMasq": true,
"ipam": {
"type": "host-local",
"Documentation":
"/usr/share/doc/containernetworking-plugins/ipam_host-local.md",
"subnet": "172.16.16.0/24",
"routes": [
{ "dst": "0.0.0.0/0" }
]
}
},
{
"type": "portmap",
"Documentation":
"/usr/share/doc/containernetworking-plugins/meta_portmap.md",
"capabilities": { "portMappings": true }
},
{
"type": "firewall",
"Documentation":
"/usr/share/doc/containernetworking-plugins/meta_firewall.md",
"backend": "iptables"
}
]
}
pi@raspberrypi:~ $
So looks like I do have the old CNI networking.
pi@raspberrypi:~ $ sudo find / -iname '*cni*'
/usr/lib/systemd/system/cni-dhcp.socket
/usr/lib/systemd/system/cni-dhcp.service
/usr/lib/cni
/usr/share/doc/buildah/examples/cni-examples
/usr/share/doc/podman/examples/cni
/var/lib/systemd/deb-systemd-helper-enabled/cni-dhcp.service.dsh-also
/var/lib/systemd/deb-systemd-helper-enabled/cni-dhcp.socket.dsh-also
/etc/cni
pi@raspberrypi:~ $
Is there any chance of this working in 32-bit ARMv6?
Loren
> On 6/27/22 17:59, Loren Amelang wrote:
> > I've installed Podman on a Raspberry Pi Zero W, and want to test
the
> > network connection. I found this:
> >
> > pi@raspberrypi:~/tripod $ podman pull docker.io/library/httpd
<
http://docker.io/library/httpd>
> >
> > pi@raspberrypi:~/tripod $ podman run -dt -p 8088:80/tcp
> > docker.io/library/httpd <
http://docker.io/library/httpd>
> > 54a005199e38260bae58a6a5437dd0fbde62f2f596b25d928fb346328cfc9e73
> > pi@raspberrypi:~/tripod $
> >
> > I chose "8088:80" because incoming port 8080 is already in
use and
> > working on that Pi. Seems that is valid?
> >
> > It seems to run, but closes itself in under a minute:
> >
> > pi@raspberrypi:~/tripod $ podman ps -a
> > CONTAINER ID IMAGE COMMAND CREATED
> > STATUS PORTS NAMES
> > 54a005199e38 docker.io/library/httpd
<
http://docker.io/library/httpd> httpd-foreground 26 minutes
> > ago Exited (139) 26 minutes ago 0.0.0.0:8088->80/tcp hopeful_buck
> > 787779b20e96 docker.io/library/httpd
<
http://docker.io/library/httpd> httpd-foreground 18 seconds
> > ago Exited (139) 16 seconds ago 0.0.0.0:8088->80/tcp
pedantic_yonath
> > pi@raspberrypi:~/tripod $
> >
> > pi@raspberrypi:~/tripod $ podman logs -l
> > pi@raspberrypi:~/tripod $
> > pi@raspberrypi:~/tripod $ podman top -l
> > Error: top can only be used on running containers
> > pi@raspberrypi:~/tripod $
> >
> > slirp4netns is already the newest version (1.0.1-2).
> >
> > Could someone please suggest what to check next?
> >
> > Loren
> > _______________________________________________
> > Podman mailing list -- podman(a)lists.podman.io
<mailto:podman@lists.podman.io>
> > To unsubscribe send an email to podman-leave(a)lists.podman.io
<mailto:podman-leave@lists.podman.io>
>
>
> _______________________________________________
> Podman mailing list -- podman(a)lists.podman.io
<mailto:podman@lists.podman.io>
> To unsubscribe send an email to podman-leave(a)lists.podman.io
<mailto:podman-leave@lists.podman.io>
>
>
> _______________________________________________
> Podman mailing list -- podman(a)lists.podman.io
> To unsubscribe send an email to podman-leave(a)lists.podman.io