unifi-utilities / unifios-utilities

A collection of enhancements for UnifiOS based devices
GNU General Public License v3.0
3.93k stars 419 forks source link

ERRO[0023] CNI network "Pihole Network" not found #217

Open RutgerP opened 3 years ago

RutgerP commented 3 years ago

Update:

Found the issue. 20-dns.conflist was not getting copied to /etc/cni/net.d/.

Hey everyone,

I'm not sure what I'm doing wrong but I can't seem to start the Pihole container. I get the following error:

image

My 10-dns.sh conf:

#!/bin/sh

## configuration variables:
VLAN=53
IPV4_IP="192.168.53.3"
IPV4_GW="192.168.53.1/24"
IPV6_IP=""
IPV6_GW=""
FORCED_INTFC=""
CONTAINER=pihole

My 20-dns.conflist:

{ "cniVersion": "0.4.0", "name": "Pihole Network", "plugins": [ { "type": "macvlan", "mode": "bridge", "master": "br53", "mac": "00:50:c2:5a:9e:7b", "ipam": { "type": "static", "addresses": [ { "address": "192.168.53.3/24", "gateway": "192.168.53.1" } ], "routes": [ {"dst": "0.0.0.0/0"} ] } } ] }

Network created in Unifi:

image image

Podman run command:

podman run -d --network "Pihole Network" --restart always \ --name pihole \ -e TZ="Europe/Brussels" \ -v "/mnt/data/etc-pihole/:/etc/pihole/" \ -v "/mnt/data/pihole/etc-dnsmasq.d/:/etc/dnsmasq.d/" \ --dns=127.0.0.1 \ --dns=1.1.1.1 \ --dns=1.0.0.1 \ --hostname pi.hole \ -e VIRTUAL_HOST="pi.hole" \ -e PROXY_LOCATION="pi.hole" \ -e ServerIP="192.168.53.3" \ -e IPv6="False" \ pihole/pihole:latest

What am I doing wrong?

maxviper commented 3 years ago

I do have a similar issue. This is my configuration: https://github.com/maxviper/UDM-customisation#step-6--run-pi-hole-on-your-udm

First issue I do have is that I get an error message that the image is not know:

# podman run -d --network dns --restart always \
     --name pihole \
     -e TZ="Brussels/Europe" \
     -v "/mnt/data/etc-pihole/:/etc/pihole/" \
     -v "/mnt/data/pihole/etc-dnsmasq.d/:/etc/dnsmasq.d/" \
     --dns=127.0.0.1 \
     --dns=208.67.222.222 \
     --dns=208.67.220.220 \
     --hostname pi.hole \
     -e VIRTUAL_HOST="pi.hole" \
     -e PROXY_LOCATION="pi.hole" \
     -e ServerIP="10.0.5.3" \
     -e IPv6="False" \
     pihole/pihole:latest
Error: pihole/pihole:latest: image not known

I can workaround this by using the image ID, although I also need to download /usr/share/containers/seccomp.json

curl -LJ https://github.com/boostchicken/udm-utilities/blob/master/podman-update/bin/seccomp.json?raw=true -o /usr/share/containers/seccomp.json

After running with image ID and downloading seccomp.json I get the following error

podman --log-level=debug  run -d --network dns --restart always \
     --name pihole\
     -e TZ="Brussels/Europe" \
     -v "/mnt/data/etc-pihole/:/etc/pihole/" \
     -v "/mnt/data/pihole/etc-dnsmasq.d/:/etc/dnsmasq.d/" \
     --dns=127.0.0.1 \
     --dns=208.67.222.222 \
     --dns=208.67.220.220 \
     --hostname pi.hole \
     -e VIRTUAL_HOST="pi.hole" \
     -e PROXY_LOCATION="pi.hole" \
     -e ServerIP="10.0.5.3" \
     -e IPv6="False" \
     14ad311e9efe28ff1a76ef8100beb9d2e95442a3c5afd940d5af30a40cbdd8e4
INFO[0000] podman filtering at log level debug          
DEBU[0000] Called run.PersistentPreRunE(podman --log-level=debug run -d --network dns --restart always --name pihole -e TZ=Brussels/Europe -v /mnt/data/etc-pihole/:/etc/pihole/ -v /mnt/data/pihole/etc-dnsmasq.d/:/etc/dnsmasq.d/ --dns=127.0.0.1 --dns=208.67.222.222 --dns=208.67.220.220 --hostname pi.hole -e VIRTUAL_HOST=pi.hole -e PROXY_LOCATION=pi.hole -e ServerIP=10.0.5.3 -e IPv6=False 14ad311e9efe28ff1a76ef8100beb9d2e95442a3c5afd940d5af30a40cbdd8e4) 
DEBU[0000] Using conmon: "/usr/libexec/podman/conmon"   
DEBU[0000] Initializing boltdb state at /mnt/data/podman/storage/libpod/bolt_state.db 
DEBU[0000] Overriding tmp dir "/run/libpod" with "/var/run/libpod" from database 
DEBU[0000] Using graph driver overlay                   
DEBU[0000] Using graph root /mnt/data/podman/storage    
DEBU[0000] Using run root /var/run/containers/storage   
DEBU[0000] Using static dir /mnt/data/podman/storage/libpod 
DEBU[0000] Using tmp dir /var/run/libpod                
DEBU[0000] Using volume path /mnt/data/podman/storage/volumes 
DEBU[0000] Set libpod namespace to ""                   
DEBU[0000] [graphdriver] trying provided driver "overlay" 
DEBU[0000] overlay: imagestore=/var/lib/containers/storage 
DEBU[0000] overlay: skip_mount_home=false               
DEBU[0000] overlay: skip_mount_home=false               
DEBU[0000] cached value indicated that overlay is supported 
DEBU[0000] cached value indicated that metacopy is not being used 
DEBU[0000] cached value indicated that native-diff is usable 
DEBU[0000] backingFs=extfs, projectQuotaSupported=false, useNativeDiff=true, usingMetacopy=false 
DEBU[0000] Initializing event backend file              
DEBU[0000] configured OCI runtime runsc initialization failed: no valid executable found for OCI runtime runsc: invalid argument 
DEBU[0000] configured OCI runtime crun initialization failed: no valid executable found for OCI runtime crun: invalid argument 
DEBU[0000] configured OCI runtime kata initialization failed: no valid executable found for OCI runtime kata: invalid argument 
DEBU[0000] Using OCI runtime "/usr/bin/runc"            
INFO[0000] Found CNI network podman (type=bridge) at /etc/cni/net.d/10-libpod.conflist 
INFO[0000] Found CNI network dns (type=macvlan) at /etc/cni/net.d/20-dns.conflist 
DEBU[0000] Default CNI network name podman is unchangeable 
INFO[0000] Setting parallel job count to 13             
DEBU[0000] Looking up image "14ad311e9efe28ff1a76ef8100beb9d2e95442a3c5afd940d5af30a40cbdd8e4" in local containers storage 
DEBU[0000] Trying "14ad311e9efe28ff1a76ef8100beb9d2e95442a3c5afd940d5af30a40cbdd8e4" ... 
DEBU[0000] parsed reference into "[overlay@/mnt/data/podman/storage+/var/run/containers/storage:overlay.imagestore=/var/lib/containers/storage,overlay.skip_mount_home=false,overlay.mountopt=nodev,overlay.mountopt=nodev,overlay.skip_mount_home=false]@14ad311e9efe28ff1a76ef8100beb9d2e95442a3c5afd940d5af30a40cbdd8e4" 
DEBU[0000] Found image "14ad311e9efe28ff1a76ef8100beb9d2e95442a3c5afd940d5af30a40cbdd8e4" as "14ad311e9efe28ff1a76ef8100beb9d2e95442a3c5afd940d5af30a40cbdd8e4" in local containers storage 
DEBU[0000] User mount /mnt/data/etc-pihole/:/etc/pihole/ options [] 
DEBU[0000] User mount /mnt/data/pihole/etc-dnsmasq.d/:/etc/dnsmasq.d/ options [] 
DEBU[0000] Looking up image "14ad311e9efe28ff1a76ef8100beb9d2e95442a3c5afd940d5af30a40cbdd8e4" in local containers storage 
DEBU[0000] Trying "14ad311e9efe28ff1a76ef8100beb9d2e95442a3c5afd940d5af30a40cbdd8e4" ... 
DEBU[0000] parsed reference into "[overlay@/mnt/data/podman/storage+/var/run/containers/storage:overlay.imagestore=/var/lib/containers/storage,overlay.skip_mount_home=false,overlay.mountopt=nodev,overlay.mountopt=nodev,overlay.skip_mount_home=false]@14ad311e9efe28ff1a76ef8100beb9d2e95442a3c5afd940d5af30a40cbdd8e4" 
DEBU[0000] Found image "14ad311e9efe28ff1a76ef8100beb9d2e95442a3c5afd940d5af30a40cbdd8e4" as "14ad311e9efe28ff1a76ef8100beb9d2e95442a3c5afd940d5af30a40cbdd8e4" in local containers storage 
DEBU[0000] exporting opaque data as blob "sha256:14ad311e9efe28ff1a76ef8100beb9d2e95442a3c5afd940d5af30a40cbdd8e4" 
DEBU[0000] Found image "14ad311e9efe28ff1a76ef8100beb9d2e95442a3c5afd940d5af30a40cbdd8e4" as "14ad311e9efe28ff1a76ef8100beb9d2e95442a3c5afd940d5af30a40cbdd8e4" in local containers storage ([overlay@/mnt/data/podman/storage+/var/run/containers/storage:overlay.imagestore=/var/lib/containers/storage,overlay.skip_mount_home=false,overlay.mountopt=nodev,overlay.mountopt=nodev,overlay.skip_mount_home=false]@14ad311e9efe28ff1a76ef8100beb9d2e95442a3c5afd940d5af30a40cbdd8e4) 
DEBU[0000] Inspecting image 14ad311e9efe28ff1a76ef8100beb9d2e95442a3c5afd940d5af30a40cbdd8e4 
DEBU[0000] exporting opaque data as blob "sha256:14ad311e9efe28ff1a76ef8100beb9d2e95442a3c5afd940d5af30a40cbdd8e4" 
DEBU[0000] exporting opaque data as blob "sha256:14ad311e9efe28ff1a76ef8100beb9d2e95442a3c5afd940d5af30a40cbdd8e4" 
DEBU[0000] exporting opaque data as blob "sha256:14ad311e9efe28ff1a76ef8100beb9d2e95442a3c5afd940d5af30a40cbdd8e4" 
DEBU[0000] exporting opaque data as blob "sha256:14ad311e9efe28ff1a76ef8100beb9d2e95442a3c5afd940d5af30a40cbdd8e4" 
Your kernel does not support pids limit capabilities or the cgroup is not mounted. PIDs limit discarded.
DEBU[0000] Looking up image "14ad311e9efe28ff1a76ef8100beb9d2e95442a3c5afd940d5af30a40cbdd8e4" in local containers storage 
DEBU[0000] Trying "14ad311e9efe28ff1a76ef8100beb9d2e95442a3c5afd940d5af30a40cbdd8e4" ... 
DEBU[0000] parsed reference into "[overlay@/mnt/data/podman/storage+/var/run/containers/storage:overlay.imagestore=/var/lib/containers/storage,overlay.skip_mount_home=false,overlay.mountopt=nodev,overlay.mountopt=nodev,overlay.skip_mount_home=false]@14ad311e9efe28ff1a76ef8100beb9d2e95442a3c5afd940d5af30a40cbdd8e4" 
DEBU[0000] Found image "14ad311e9efe28ff1a76ef8100beb9d2e95442a3c5afd940d5af30a40cbdd8e4" as "14ad311e9efe28ff1a76ef8100beb9d2e95442a3c5afd940d5af30a40cbdd8e4" in local containers storage 
DEBU[0000] exporting opaque data as blob "sha256:14ad311e9efe28ff1a76ef8100beb9d2e95442a3c5afd940d5af30a40cbdd8e4" 
DEBU[0000] Found image "14ad311e9efe28ff1a76ef8100beb9d2e95442a3c5afd940d5af30a40cbdd8e4" as "14ad311e9efe28ff1a76ef8100beb9d2e95442a3c5afd940d5af30a40cbdd8e4" in local containers storage ([overlay@/mnt/data/podman/storage+/var/run/containers/storage:overlay.imagestore=/var/lib/containers/storage,overlay.skip_mount_home=false,overlay.mountopt=nodev,overlay.mountopt=nodev,overlay.skip_mount_home=false]@14ad311e9efe28ff1a76ef8100beb9d2e95442a3c5afd940d5af30a40cbdd8e4) 
DEBU[0000] Inspecting image 14ad311e9efe28ff1a76ef8100beb9d2e95442a3c5afd940d5af30a40cbdd8e4 
DEBU[0000] exporting opaque data as blob "sha256:14ad311e9efe28ff1a76ef8100beb9d2e95442a3c5afd940d5af30a40cbdd8e4" 
DEBU[0000] exporting opaque data as blob "sha256:14ad311e9efe28ff1a76ef8100beb9d2e95442a3c5afd940d5af30a40cbdd8e4" 
DEBU[0000] exporting opaque data as blob "sha256:14ad311e9efe28ff1a76ef8100beb9d2e95442a3c5afd940d5af30a40cbdd8e4" 
DEBU[0000] exporting opaque data as blob "sha256:14ad311e9efe28ff1a76ef8100beb9d2e95442a3c5afd940d5af30a40cbdd8e4" 
DEBU[0000] Inspecting image 14ad311e9efe28ff1a76ef8100beb9d2e95442a3c5afd940d5af30a40cbdd8e4 
DEBU[0000] using systemd mode: false                    
DEBU[0000] setting container name pihole                
DEBU[0000] New container has a health check             
DEBU[0000] Loading seccomp profile from "/usr/share/containers/seccomp.json" 
DEBU[0000] Adding mount /proc                           
DEBU[0000] Adding mount /dev                            
DEBU[0000] Adding mount /dev/pts                        
DEBU[0000] Adding mount /dev/mqueue                     
DEBU[0000] Adding mount /sys                            
DEBU[0000] Adding mount /sys/fs/cgroup                  
DEBU[0000] Allocated lock 3 for container 3db2650c8cf6bb0459c7b1cba6bdf1bd06dd8e2de4c9b7935c81a091a9fe0892 
DEBU[0000] parsed reference into "[overlay@/mnt/data/podman/storage+/var/run/containers/storage:overlay.imagestore=/var/lib/containers/storage,overlay.skip_mount_home=false,overlay.mountopt=nodev,overlay.mountopt=nodev,overlay.skip_mount_home=false]@14ad311e9efe28ff1a76ef8100beb9d2e95442a3c5afd940d5af30a40cbdd8e4" 
DEBU[0000] exporting opaque data as blob "sha256:14ad311e9efe28ff1a76ef8100beb9d2e95442a3c5afd940d5af30a40cbdd8e4" 
DEBU[0000] created container "3db2650c8cf6bb0459c7b1cba6bdf1bd06dd8e2de4c9b7935c81a091a9fe0892" 
DEBU[0000] container "3db2650c8cf6bb0459c7b1cba6bdf1bd06dd8e2de4c9b7935c81a091a9fe0892" has work directory "/mnt/data/podman/storage/overlay-containers/3db2650c8cf6bb0459c7b1cba6bdf1bd06dd8e2de4c9b7935c81a091a9fe0892/userdata" 
DEBU[0000] container "3db2650c8cf6bb0459c7b1cba6bdf1bd06dd8e2de4c9b7935c81a091a9fe0892" has run directory "/var/run/containers/storage/overlay-containers/3db2650c8cf6bb0459c7b1cba6bdf1bd06dd8e2de4c9b7935c81a091a9fe0892/userdata" 
DEBU[0000] overlay: mount_data=nodev,lowerdir=/mnt/data/podman/storage/overlay/l/6Q7ALOWFGWQG4DREQ4PI3JP5B3:/mnt/data/podman/storage/overlay/l/3HT3WPYPJFO3RPTZU64T5XQPIE:/mnt/data/podman/storage/overlay/l/CIGIAO3ASPUYYZEA3I7IXRY7GQ:/mnt/data/podman/storage/overlay/l/QNE75Z36NENOSRZICKZD2VOAFM:/mnt/data/podman/storage/overlay/l/BJN6S27N5BZDKV7Y6BQE3Z2Y5B:/mnt/data/podman/storage/overlay/l/UA5PVVHNRRA5BPSY3H6O6C772B:/mnt/data/podman/storage/overlay/l/CJ34W5Q55K6SKKP2AWD4N62NIY:/mnt/data/podman/storage/overlay/l/YFIKYTYOD3MUWZOWZJ33I5AL5Z,upperdir=/mnt/data/podman/storage/overlay/6990a5438790df752b03d98c576d0a5721492d553aea73fa3645ea3fc17a167f/diff,workdir=/mnt/data/podman/storage/overlay/6990a5438790df752b03d98c576d0a5721492d553aea73fa3645ea3fc17a167f/work 
DEBU[0000] mounted container "3db2650c8cf6bb0459c7b1cba6bdf1bd06dd8e2de4c9b7935c81a091a9fe0892" at "/mnt/data/podman/storage/overlay/6990a5438790df752b03d98c576d0a5721492d553aea73fa3645ea3fc17a167f/merged" 
DEBU[0000] Made network namespace at /run/netns/cni-350bee30-7bb0-cb89-b625-76ad6e601e5a for container 3db2650c8cf6bb0459c7b1cba6bdf1bd06dd8e2de4c9b7935c81a091a9fe0892 
INFO[0000] Got pod network &{Name:pihole Namespace:pihole ID:3db2650c8cf6bb0459c7b1cba6bdf1bd06dd8e2de4c9b7935c81a091a9fe0892 NetNS:/run/netns/cni-350bee30-7bb0-cb89-b625-76ad6e601e5a Networks:[{Name:dns Ifname:eth0}] RuntimeConfig:map[dns:{IP: MAC: PortMappings:[] Bandwidth:<nil> IpRanges:[]}] Aliases:map[]} 
INFO[0000] About to add CNI network dns (type=macvlan)  
DEBU[0000] Created root filesystem for container 3db2650c8cf6bb0459c7b1cba6bdf1bd06dd8e2de4c9b7935c81a091a9fe0892 at /mnt/data/podman/storage/overlay/6990a5438790df752b03d98c576d0a5721492d553aea73fa3645ea3fc17a167f/merged 
ERRO[0000] Error adding network: failed to create macvlan: cannot assign requested address 
ERRO[0000] Error while adding pod to CNI network "dns": failed to create macvlan: cannot assign requested address 
INFO[0000] Got pod network &{Name:pihole Namespace:pihole ID:3db2650c8cf6bb0459c7b1cba6bdf1bd06dd8e2de4c9b7935c81a091a9fe0892 NetNS:/run/netns/cni-350bee30-7bb0-cb89-b625-76ad6e601e5a Networks:[{Name:dns Ifname:eth0}] RuntimeConfig:map[dns:{IP: MAC: PortMappings:[] Bandwidth:<nil> IpRanges:[]}] Aliases:map[]} 
ERRO[0000] error loading cached network config: network "dns" not found in CNI cache 
WARN[0000] falling back to loading from existing plugins on disk 
INFO[0000] About to del CNI network dns (type=macvlan)  
DEBU[0000] unmounted container "3db2650c8cf6bb0459c7b1cba6bdf1bd06dd8e2de4c9b7935c81a091a9fe0892" 
DEBU[0000] Network is already cleaned up, skipping...   
DEBU[0000] Cleaning up container 3db2650c8cf6bb0459c7b1cba6bdf1bd06dd8e2de4c9b7935c81a091a9fe0892 
DEBU[0000] Network is already cleaned up, skipping...   
DEBU[0000] Container 3db2650c8cf6bb0459c7b1cba6bdf1bd06dd8e2de4c9b7935c81a091a9fe0892 storage is already unmounted, skipping... 
DEBU[0000] ExitCode msg: "error configuring network namespace for container 3db2650c8cf6bb0459c7b1cba6bdf1bd06dd8e2de4c9b7935c81a091a9fe0892: failed to create macvlan: cannot assign requested address" 
Error: error configuring network namespace for container 3db2650c8cf6bb0459c7b1cba6bdf1bd06dd8e2de4c9b7935c81a091a9fe0892: failed to create macvlan: cannot assign requested address
`
``

I propose to add  --log-level=debug  to get more information on your issue.

I just found an article on the MAC address. It needs to be a legit address according to this post: https://github.com/boostchicken/udm-utilities/issues/85

I've modified my MAC address and now it's working.

``` bash
podman --log-level=debug  run -d --network dns --restart always \
     --name pihole\
     -e TZ="Brussels/Europe" \
     -v "/mnt/data/etc-pihole/:/etc/pihole/" \
     -v "/mnt/data/pihole/etc-dnsmasq.d/:/etc/dnsmasq.d/" \
     --dns=127.0.0.1 \
     --dns=208.67.222.222 \
     --dns=208.67.220.220 \
     --hostname pi.hole \
     -e VIRTUAL_HOST="pi.hole" \
     -e PROXY_LOCATION="pi.hole" \
     -e ServerIP="10.0.5.3" \
     -e IPv6="False" \
    14ad311e9efe28ff1a76ef8100beb9d2e95442a3c5afd940d5af30a40cbdd8e4
INFO[0000] podman filtering at log level debug          
DEBU[0000] Called run.PersistentPreRunE(podman --log-level=debug run -d --network dns --restart always --name pihole -e TZ=Brussels/Europe -v /mnt/data/etc-pihole/:/etc/pihole/ -v /mnt/data/pihole/etc-dnsmasq.d/:/etc/dnsmasq.d/ --dns=127.0.0.1 --dns=208.67.222.222 --dns=208.67.220.220 --hostname pi.hole -e VIRTUAL_HOST=pi.hole -e PROXY_LOCATION=pi.hole -e ServerIP=10.0.5.3 -e IPv6=False 14ad311e9efe28ff1a76ef8100beb9d2e95442a3c5afd940d5af30a40cbdd8e4) 
DEBU[0000] Using conmon: "/usr/libexec/podman/conmon"   
DEBU[0000] Initializing boltdb state at /mnt/data/podman/storage/libpod/bolt_state.db 
DEBU[0000] Overriding tmp dir "/run/libpod" with "/var/run/libpod" from database 
DEBU[0000] Using graph driver overlay                   
DEBU[0000] Using graph root /mnt/data/podman/storage    
DEBU[0000] Using run root /var/run/containers/storage   
DEBU[0000] Using static dir /mnt/data/podman/storage/libpod 
DEBU[0000] Using tmp dir /var/run/libpod                
DEBU[0000] Using volume path /mnt/data/podman/storage/volumes 
DEBU[0000] Set libpod namespace to ""                   
DEBU[0000] [graphdriver] trying provided driver "overlay" 
DEBU[0000] overlay: imagestore=/var/lib/containers/storage 
DEBU[0000] overlay: skip_mount_home=false               
DEBU[0000] overlay: skip_mount_home=false               
DEBU[0000] cached value indicated that overlay is supported 
DEBU[0000] cached value indicated that metacopy is not being used 
DEBU[0000] cached value indicated that native-diff is usable 
DEBU[0000] backingFs=extfs, projectQuotaSupported=false, useNativeDiff=true, usingMetacopy=false 
DEBU[0000] Initializing event backend file              
DEBU[0000] configured OCI runtime crun initialization failed: no valid executable found for OCI runtime crun: invalid argument 
DEBU[0000] configured OCI runtime kata initialization failed: no valid executable found for OCI runtime kata: invalid argument 
DEBU[0000] configured OCI runtime runsc initialization failed: no valid executable found for OCI runtime runsc: invalid argument 
DEBU[0000] Using OCI runtime "/usr/bin/runc"            
INFO[0000] Found CNI network podman (type=bridge) at /etc/cni/net.d/10-libpod.conflist 
INFO[0000] Found CNI network dns (type=macvlan) at /etc/cni/net.d/20-dns.conflist 
DEBU[0000] Default CNI network name podman is unchangeable 
INFO[0000] Setting parallel job count to 13             
DEBU[0000] Looking up image "14ad311e9efe28ff1a76ef8100beb9d2e95442a3c5afd940d5af30a40cbdd8e4" in local containers storage 
DEBU[0000] Trying "14ad311e9efe28ff1a76ef8100beb9d2e95442a3c5afd940d5af30a40cbdd8e4" ... 
DEBU[0000] parsed reference into "[overlay@/mnt/data/podman/storage+/var/run/containers/storage:overlay.imagestore=/var/lib/containers/storage,overlay.skip_mount_home=false,overlay.mountopt=nodev,overlay.mountopt=nodev,overlay.skip_mount_home=false]@14ad311e9efe28ff1a76ef8100beb9d2e95442a3c5afd940d5af30a40cbdd8e4" 
DEBU[0000] Found image "14ad311e9efe28ff1a76ef8100beb9d2e95442a3c5afd940d5af30a40cbdd8e4" as "14ad311e9efe28ff1a76ef8100beb9d2e95442a3c5afd940d5af30a40cbdd8e4" in local containers storage 
DEBU[0000] User mount /mnt/data/etc-pihole/:/etc/pihole/ options [] 
DEBU[0000] User mount /mnt/data/pihole/etc-dnsmasq.d/:/etc/dnsmasq.d/ options [] 
DEBU[0000] Looking up image "14ad311e9efe28ff1a76ef8100beb9d2e95442a3c5afd940d5af30a40cbdd8e4" in local containers storage 
DEBU[0000] Trying "14ad311e9efe28ff1a76ef8100beb9d2e95442a3c5afd940d5af30a40cbdd8e4" ... 
DEBU[0000] parsed reference into "[overlay@/mnt/data/podman/storage+/var/run/containers/storage:overlay.imagestore=/var/lib/containers/storage,overlay.skip_mount_home=false,overlay.mountopt=nodev,overlay.mountopt=nodev,overlay.skip_mount_home=false]@14ad311e9efe28ff1a76ef8100beb9d2e95442a3c5afd940d5af30a40cbdd8e4" 
DEBU[0000] Found image "14ad311e9efe28ff1a76ef8100beb9d2e95442a3c5afd940d5af30a40cbdd8e4" as "14ad311e9efe28ff1a76ef8100beb9d2e95442a3c5afd940d5af30a40cbdd8e4" in local containers storage 
DEBU[0000] exporting opaque data as blob "sha256:14ad311e9efe28ff1a76ef8100beb9d2e95442a3c5afd940d5af30a40cbdd8e4" 
DEBU[0000] Found image "14ad311e9efe28ff1a76ef8100beb9d2e95442a3c5afd940d5af30a40cbdd8e4" as "14ad311e9efe28ff1a76ef8100beb9d2e95442a3c5afd940d5af30a40cbdd8e4" in local containers storage ([overlay@/mnt/data/podman/storage+/var/run/containers/storage:overlay.imagestore=/var/lib/containers/storage,overlay.skip_mount_home=false,overlay.mountopt=nodev,overlay.mountopt=nodev,overlay.skip_mount_home=false]@14ad311e9efe28ff1a76ef8100beb9d2e95442a3c5afd940d5af30a40cbdd8e4) 
DEBU[0000] Inspecting image 14ad311e9efe28ff1a76ef8100beb9d2e95442a3c5afd940d5af30a40cbdd8e4 
DEBU[0000] exporting opaque data as blob "sha256:14ad311e9efe28ff1a76ef8100beb9d2e95442a3c5afd940d5af30a40cbdd8e4" 
DEBU[0000] exporting opaque data as blob "sha256:14ad311e9efe28ff1a76ef8100beb9d2e95442a3c5afd940d5af30a40cbdd8e4" 
DEBU[0000] exporting opaque data as blob "sha256:14ad311e9efe28ff1a76ef8100beb9d2e95442a3c5afd940d5af30a40cbdd8e4" 
DEBU[0000] exporting opaque data as blob "sha256:14ad311e9efe28ff1a76ef8100beb9d2e95442a3c5afd940d5af30a40cbdd8e4" 
Your kernel does not support pids limit capabilities or the cgroup is not mounted. PIDs limit discarded.
DEBU[0000] Looking up image "14ad311e9efe28ff1a76ef8100beb9d2e95442a3c5afd940d5af30a40cbdd8e4" in local containers storage 
DEBU[0000] Trying "14ad311e9efe28ff1a76ef8100beb9d2e95442a3c5afd940d5af30a40cbdd8e4" ... 
DEBU[0000] parsed reference into "[overlay@/mnt/data/podman/storage+/var/run/containers/storage:overlay.imagestore=/var/lib/containers/storage,overlay.skip_mount_home=false,overlay.mountopt=nodev,overlay.mountopt=nodev,overlay.skip_mount_home=false]@14ad311e9efe28ff1a76ef8100beb9d2e95442a3c5afd940d5af30a40cbdd8e4" 
DEBU[0000] Found image "14ad311e9efe28ff1a76ef8100beb9d2e95442a3c5afd940d5af30a40cbdd8e4" as "14ad311e9efe28ff1a76ef8100beb9d2e95442a3c5afd940d5af30a40cbdd8e4" in local containers storage 
DEBU[0000] exporting opaque data as blob "sha256:14ad311e9efe28ff1a76ef8100beb9d2e95442a3c5afd940d5af30a40cbdd8e4" 
DEBU[0000] Found image "14ad311e9efe28ff1a76ef8100beb9d2e95442a3c5afd940d5af30a40cbdd8e4" as "14ad311e9efe28ff1a76ef8100beb9d2e95442a3c5afd940d5af30a40cbdd8e4" in local containers storage ([overlay@/mnt/data/podman/storage+/var/run/containers/storage:overlay.imagestore=/var/lib/containers/storage,overlay.skip_mount_home=false,overlay.mountopt=nodev,overlay.mountopt=nodev,overlay.skip_mount_home=false]@14ad311e9efe28ff1a76ef8100beb9d2e95442a3c5afd940d5af30a40cbdd8e4) 
DEBU[0000] Inspecting image 14ad311e9efe28ff1a76ef8100beb9d2e95442a3c5afd940d5af30a40cbdd8e4 
DEBU[0000] exporting opaque data as blob "sha256:14ad311e9efe28ff1a76ef8100beb9d2e95442a3c5afd940d5af30a40cbdd8e4" 
DEBU[0000] exporting opaque data as blob "sha256:14ad311e9efe28ff1a76ef8100beb9d2e95442a3c5afd940d5af30a40cbdd8e4" 
DEBU[0000] exporting opaque data as blob "sha256:14ad311e9efe28ff1a76ef8100beb9d2e95442a3c5afd940d5af30a40cbdd8e4" 
DEBU[0000] exporting opaque data as blob "sha256:14ad311e9efe28ff1a76ef8100beb9d2e95442a3c5afd940d5af30a40cbdd8e4" 
DEBU[0000] Inspecting image 14ad311e9efe28ff1a76ef8100beb9d2e95442a3c5afd940d5af30a40cbdd8e4 
DEBU[0000] using systemd mode: false                    
DEBU[0000] setting container name pihole                
DEBU[0000] New container has a health check             
DEBU[0000] Loading seccomp profile from "/usr/share/containers/seccomp.json" 
DEBU[0000] Adding mount /proc                           
DEBU[0000] Adding mount /dev                            
DEBU[0000] Adding mount /dev/pts                        
DEBU[0000] Adding mount /dev/mqueue                     
DEBU[0000] Adding mount /sys                            
DEBU[0000] Adding mount /sys/fs/cgroup                  
DEBU[0000] Allocated lock 3 for container 69f32d4fc4b993beb3efbf2cbcbaa82915f4f9f7cec413109e0951dc822a0809 
DEBU[0000] parsed reference into "[overlay@/mnt/data/podman/storage+/var/run/containers/storage:overlay.imagestore=/var/lib/containers/storage,overlay.skip_mount_home=false,overlay.mountopt=nodev,overlay.mountopt=nodev,overlay.skip_mount_home=false]@14ad311e9efe28ff1a76ef8100beb9d2e95442a3c5afd940d5af30a40cbdd8e4" 
DEBU[0000] exporting opaque data as blob "sha256:14ad311e9efe28ff1a76ef8100beb9d2e95442a3c5afd940d5af30a40cbdd8e4" 
DEBU[0000] created container "69f32d4fc4b993beb3efbf2cbcbaa82915f4f9f7cec413109e0951dc822a0809" 
DEBU[0000] container "69f32d4fc4b993beb3efbf2cbcbaa82915f4f9f7cec413109e0951dc822a0809" has work directory "/mnt/data/podman/storage/overlay-containers/69f32d4fc4b993beb3efbf2cbcbaa82915f4f9f7cec413109e0951dc822a0809/userdata" 
DEBU[0000] container "69f32d4fc4b993beb3efbf2cbcbaa82915f4f9f7cec413109e0951dc822a0809" has run directory "/var/run/containers/storage/overlay-containers/69f32d4fc4b993beb3efbf2cbcbaa82915f4f9f7cec413109e0951dc822a0809/userdata" 
DEBU[0000] overlay: mount_data=nodev,lowerdir=/mnt/data/podman/storage/overlay/l/6Q7ALOWFGWQG4DREQ4PI3JP5B3:/mnt/data/podman/storage/overlay/l/3HT3WPYPJFO3RPTZU64T5XQPIE:/mnt/data/podman/storage/overlay/l/CIGIAO3ASPUYYZEA3I7IXRY7GQ:/mnt/data/podman/storage/overlay/l/QNE75Z36NENOSRZICKZD2VOAFM:/mnt/data/podman/storage/overlay/l/BJN6S27N5BZDKV7Y6BQE3Z2Y5B:/mnt/data/podman/storage/overlay/l/UA5PVVHNRRA5BPSY3H6O6C772B:/mnt/data/podman/storage/overlay/l/CJ34W5Q55K6SKKP2AWD4N62NIY:/mnt/data/podman/storage/overlay/l/YFIKYTYOD3MUWZOWZJ33I5AL5Z,upperdir=/mnt/data/podman/storage/overlay/f0db77ea15b64371df48c4ae2c8fe8cd0058c65d6ae9fa9cc2e84b4e8afb8134/diff,workdir=/mnt/data/podman/storage/overlay/f0db77ea15b64371df48c4ae2c8fe8cd0058c65d6ae9fa9cc2e84b4e8afb8134/work 
DEBU[0000] mounted container "69f32d4fc4b993beb3efbf2cbcbaa82915f4f9f7cec413109e0951dc822a0809" at "/mnt/data/podman/storage/overlay/f0db77ea15b64371df48c4ae2c8fe8cd0058c65d6ae9fa9cc2e84b4e8afb8134/merged" 
DEBU[0000] Made network namespace at /run/netns/cni-1f3563f6-2606-1c10-8ddd-a1836919f2e2 for container 69f32d4fc4b993beb3efbf2cbcbaa82915f4f9f7cec413109e0951dc822a0809 
DEBU[0000] Created root filesystem for container 69f32d4fc4b993beb3efbf2cbcbaa82915f4f9f7cec413109e0951dc822a0809 at /mnt/data/podman/storage/overlay/f0db77ea15b64371df48c4ae2c8fe8cd0058c65d6ae9fa9cc2e84b4e8afb8134/merged 
INFO[0000] Got pod network &{Name:pihole Namespace:pihole ID:69f32d4fc4b993beb3efbf2cbcbaa82915f4f9f7cec413109e0951dc822a0809 NetNS:/run/netns/cni-1f3563f6-2606-1c10-8ddd-a1836919f2e2 Networks:[{Name:dns Ifname:eth0}] RuntimeConfig:map[dns:{IP: MAC: PortMappings:[] Bandwidth:<nil> IpRanges:[]}] Aliases:map[]} 
INFO[0000] About to add CNI network dns (type=macvlan)  
DEBU[0000] [0] CNI result: &{0.4.0 [{Name:eth0 Mac:00:15:6d:29:58:d5 Sandbox:/run/netns/cni-1f3563f6-2606-1c10-8ddd-a1836919f2e2}] [{Version:4 Interface:0x40005de650 Address:{IP:10.0.5.3 Mask:ffffff00} Gateway:10.0.5.1}] [{Dst:{IP:0.0.0.0 Mask:00000000} GW:<nil>}] {[]  [] []}} 
DEBU[0000] Workdir "/" resolved to host path "/mnt/data/podman/storage/overlay/f0db77ea15b64371df48c4ae2c8fe8cd0058c65d6ae9fa9cc2e84b4e8afb8134/merged" 
INFO[0000] No non-localhost DNS nameservers are left in resolv.conf. Using default external servers: [nameserver 8.8.8.8 nameserver 8.8.4.4] 
INFO[0000] IPv6 enabled; Adding default IPv6 external servers: [nameserver 2001:4860:4860::8888 nameserver 2001:4860:4860::8844] 
DEBU[0000] /etc/system-fips does not exist on host, not mounting FIPS mode subscription 
DEBU[0000] user or group ID mappings not available: open /proc/self/uid_map: no such file or directory 
DEBU[0000] Setting CGroup path for container 69f32d4fc4b993beb3efbf2cbcbaa82915f4f9f7cec413109e0951dc822a0809 to /libpod_parent/libpod-69f32d4fc4b993beb3efbf2cbcbaa82915f4f9f7cec413109e0951dc822a0809 
DEBU[0000] reading hooks from /usr/share/containers/oci/hooks.d 
DEBU[0000] Created OCI spec for container 69f32d4fc4b993beb3efbf2cbcbaa82915f4f9f7cec413109e0951dc822a0809 at /mnt/data/podman/storage/overlay-containers/69f32d4fc4b993beb3efbf2cbcbaa82915f4f9f7cec413109e0951dc822a0809/userdata/config.json 
DEBU[0000] /usr/libexec/podman/conmon messages will be logged to syslog 
DEBU[0000] running conmon: /usr/libexec/podman/conmon    args="[--api-version 1 -c 69f32d4fc4b993beb3efbf2cbcbaa82915f4f9f7cec413109e0951dc822a0809 -u 69f32d4fc4b993beb3efbf2cbcbaa82915f4f9f7cec413109e0951dc822a0809 -r /usr/bin/runc -b /mnt/data/podman/storage/overlay-containers/69f32d4fc4b993beb3efbf2cbcbaa82915f4f9f7cec413109e0951dc822a0809/userdata -p /var/run/containers/storage/overlay-containers/69f32d4fc4b993beb3efbf2cbcbaa82915f4f9f7cec413109e0951dc822a0809/userdata/pidfile -n pihole --exit-dir /var/run/libpod/exits --full-attach -l k8s-file:/mnt/data/podman/storage/overlay-containers/69f32d4fc4b993beb3efbf2cbcbaa82915f4f9f7cec413109e0951dc822a0809/userdata/ctr.log --log-level debug --syslog --conmon-pidfile /var/run/containers/storage/overlay-containers/69f32d4fc4b993beb3efbf2cbcbaa82915f4f9f7cec413109e0951dc822a0809/userdata/conmon.pid --exit-command /mnt/data/.cache/podman-3.2.0-dev --exit-command-arg --root --exit-command-arg /mnt/data/podman/storage --exit-command-arg --runroot --exit-command-arg /var/run/containers/storage --exit-command-arg --log-level --exit-command-arg debug --exit-command-arg --cgroup-manager --exit-command-arg cgroupfs --exit-command-arg --tmpdir --exit-command-arg /var/run/libpod --exit-command-arg --runtime --exit-command-arg runc --exit-command-arg --storage-driver --exit-command-arg overlay --exit-command-arg --storage-opt --exit-command-arg overlay.imagestore=/var/lib/containers/storage --exit-command-arg --storage-opt --exit-command-arg overlay.skip_mount_home=false --exit-command-arg --storage-opt --exit-command-arg overlay.mountopt=nodev --exit-command-arg --storage-opt --exit-command-arg overlay.mountopt=nodev --exit-command-arg --storage-opt --exit-command-arg overlay.skip_mount_home=false --exit-command-arg --events-backend --exit-command-arg file --exit-command-arg --syslog --exit-command-arg container --exit-command-arg cleanup --exit-command-arg 69f32d4fc4b993beb3efbf2cbcbaa82915f4f9f7cec413109e0951dc822a0809]"
DEBU[0000] Received: 28067                              
INFO[0000] Got Conmon PID as 28055                      
DEBU[0000] Created container 69f32d4fc4b993beb3efbf2cbcbaa82915f4f9f7cec413109e0951dc822a0809 in OCI runtime 
DEBU[0000] Starting container 69f32d4fc4b993beb3efbf2cbcbaa82915f4f9f7cec413109e0951dc822a0809 with command [/s6-init] 
DEBU[0000] Started container 69f32d4fc4b993beb3efbf2cbcbaa82915f4f9f7cec413109e0951dc822a0809 
69f32d4fc4b993beb3efbf2cbcbaa82915f4f9f7cec413109e0951dc822a0809
DEBU[0000] Called run.PersistentPostRunE(podman --log-level=debug run -d --network dns --restart always --name pihole -e TZ=Brussels/Europe -v /mnt/data/etc-pihole/:/etc/pihole/ -v /mnt/data/pihole/etc-dnsmasq.d/:/etc/dnsmasq.d/ --dns=127.0.0.1 --dns=208.67.222.222 --dns=208.67.220.220 --hostname pi.hole -e VIRTUAL_HOST=pi.hole -e PROXY_LOCATION=pi.hole -e ServerIP=10.0.5.3 -e IPv6=False 14ad311e9efe28ff1a76ef8100beb9d2e95442a3c5afd940d5af30a40cbdd8e4) 
podman ps
CONTAINER ID  IMAGE                           COMMAND     CREATED         STATUS             PORTS   NAMES
1dd8da644ee5  localhost/unifi-os:latest       /sbin/init  6 days ago      Up 8 hours ago             unifi-os
69f32d4fc4b9  docker.io/pihole/pihole:latest              15 seconds ago  Up 15 seconds ago          pihole

However I still have no idea why I get: Error: pihole/pihole:latest: image not known Error: opening seccomp profile failed: open /usr/share/containers/seccomp.json: no such file or directory

I do have currently a workaround for those 2 issue, but it should know what to do to fix it.

dclobato commented 2 years ago

Take a look at #309. I think is the same problem...