I tried exploring a lot then from bits and pieces I was able to succeed in getting podman installed as by checking from inside the pod I was able to fetch podman --version. But the main problem remained as is since I had to use docker pull , it gives error -

WARN[0000] "/" is not a shared mount, this could cause issues or missing mounts with rootless containers ERRO[0000] running /usr/bin/newuidmap 279 0 54321 1 1 100000 65536: newuidmap: write to uid_map failed: Operation not permitted Error: cannot set up namespace using "/usr/bin/newuidmap": should have setuid or have filecaps setuid: exit status 1

In Dockerfile I have used -

FROM phx.ocir.io/oraclegbudevcorp/cn-fsgbu-erfplatform/oraclelinux:8-slim
RUN 
microdnf install -y podman && \
microdnf install -y podman-docker && \
chmod 777 /usr/bin/newgidmap && \
chmod 777 /usr/bin/newuidmap && \

Please suggest how the docker/podman would be available inside the container for running docker commands as I am using oraclelinux:8 image as reference.

0

There are 0 best solutions below