Skip to content
This repository has been archived by the owner on Aug 14, 2022. It is now read-only.

errors with podman container image (ubuntu:jammy) #2

Open
larrycai opened this issue Aug 12, 2022 · 0 comments
Open

errors with podman container image (ubuntu:jammy) #2

larrycai opened this issue Aug 12, 2022 · 0 comments

Comments

@larrycai
Copy link

larrycai commented Aug 12, 2022

Thank for this project, it will be nice if you can maintain one dockerfile or container image for it as well

issue with '/etc/containers/policy.json'

I try to create podman container image using Dockerfile below

FROM ubuntu:jammy
RUN apt-get update && apt-get install -y wget apt-utils && \
    wget https://github.com/hoshsadiq/podman-deb/releases/download/podman-4.1.1/podman_4.1.1-1_ubuntu_22.04.deb && \
    wget https://github.com/hoshsadiq/podman-deb/releases/download/netavark-1.1.0/netavark_1.1.0-1_ubuntu_22.04.deb && \
    wget https://github.com/hoshsadiq/podman-deb/releases/download/crun-1.5/crun_1.5-1_ubuntu_22.04.deb && \
    wget https://github.com/hoshsadiq/podman-deb/releases/download/conmon-2.1.3/conmon_2.1.3-1_ubuntu_22.04.deb && \
    wget https://github.com/hoshsadiq/podman-deb/releases/download/cni-plugins-1.1.1/cni-plugins_1.1.1-1_ubuntu_22.04.deb && \
    wget https://github.com/hoshsadiq/podman-deb/releases/download/aardvark-dns-1.1.0/aardvark-dns_1.1.0-1_ubuntu_22.04.deb 
RUN    apt install -y ./*.deb -o Dpkg::Options::="--force-overwrite" && apt install -f 

I face issues trying to overwrite '/etc/containers/policy.json', which is also in package golang-github-containers-common 0.44.4+ds1-1

so got patch from nforgeio/neonKUBE#1571 to add Dpkg::Options::="--force-overwrite", u can check whether it is useful

netavark error

$ docker run -it --privileged podman
root@126c4d46e5da:/# podman run -it alpine
Error: netavark: No such file or directory (os error 2)

Not sure what is missed

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant