Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for podman. #317

Merged
merged 2 commits into from
Dec 2, 2022
Merged

Conversation

jschwartzentruber
Copy link
Contributor

This is a drop-in replacement for docker, although it still requires --privileged like img.

img is not maintained (see genuinetools/img#348)

Dockerfile Outdated
@@ -5,7 +5,8 @@ FROM python:3.10-alpine
RUN apk add --no-cache img --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing

# Setup other deps
RUN apk add --no-cache git skopeo docker cargo
RUN apk add --no-cache git skopeo docker cargo podman cni-plugins \
&& sed -i 's/^#mount_program =/mount_program =/' /etc/containers/storage.conf
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is the replacement necessary?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This forces it to use fuse-overlayfs instead of the kernel module. I did forget to install fuse-overlayfs in the Dockerfile though...

/taskboot # podman pull alpine
Error: 'overlay' is not supported over overlayfs, a mount_program is required: backing file system is unsupported for this graph driver
/taskboot # sed -i 's/^#mount_program/mount_program/' /etc/containers/storage.conf
/taskboot # podman pull alpine
Error: overlay: can't stat program "/usr/bin/fuse-overlayfs": stat /usr/bin/fuse-overlayfs: no such file or directory
/taskboot # apk add fuse-overlayfs
...
/taskboot # podman pull alpine
Resolving "alpine" using unqualified-search registries (/etc/containers/registries.conf)
Trying to pull docker.io/library/alpine:latest...
Getting image source signatures
Copying blob c158987b0551 done
Copying config 49176f190c done
Writing manifest to image destination
Storing signatures
49176f190c7e9cdb51ac85ab6c6d5e4512352218190cd69b08e6fd803ffbf3da
/taskboot # 

This is a drop-in replacement for docker, although it still requires
--privileged like img.
`podman save` archives do not contain index.json, which is compatible
with docker but not with oci
@marco-c marco-c merged commit db84807 into mozilla:master Dec 2, 2022
@jschwartzentruber jschwartzentruber deleted the add-podman branch December 2, 2022 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants