-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Update UDI to allow using fuse-overlay rather than VFS with podman/buildah #21693
Comments
fuse-overlayfs-1.9-1.module+el8.6.0+15917+093ca6f8 exists in RHEL 8.6. So we can install that, and then follow steps to configure podman: |
Issues go stale after Mark the issue as fresh with If this issue is safe to close now please do so. Moderators: Add |
/remove-lifecycle stale |
@l0rd Try this, it works. Create a MachineConfig to enable containers to use cat << EOF | butane | oc apply -f -
variant: openshift
version: 4.13.0
metadata:
labels:
machineconfiguration.openshift.io/role: worker
name: nested-podman
storage:
files:
- path: /etc/crio/crio.conf.d/99-nested-podman
mode: 0644
overwrite: true
contents:
inline: |
[crio.runtime.workloads.nested-podman]
activation_annotation = "io.openshift.nested-podman"
allowed_annotations = [
"io.kubernetes.cri-o.Devices"
]
[crio.runtime]
allowed_devices=["/dev/fuse"]
EOF Note: Use Next, create a Dev Spaces workspace with a Podman enabled image. Edit the devfile and add this to the container that runs vscode: attributes:
pod-overrides: {"metadata": {"annotations": {"io.kubernetes.cri-o.Devices":"/dev/fuse","io.openshift.nested-podman":""}}} Restart the workspace from the local devfile. Remove the Then run a |
Issues go stale after Mark the issue as fresh with If this issue is safe to close now please do so. Moderators: Add |
/remove-lifecycle stale |
Is your enhancement related to a problem? Please describe
VFS is slow and building an image using Eclispe Che may take minutes when the same build takes seconds on a local machine.
Describe the solution you'd like
Configure docker/podman in the Universal Developer Image to use Fuse instead of VFS and test to build and image on OpenShift.
Additional context
It's recommended to use fuse-overlayfs rather than VFS when using podman/buildah/docker
There was an initiative to use Fuse overlay by default
The text was updated successfully, but these errors were encountered: