NVIDIA / enroot

A simple yet powerful tool to turn traditional container/OS images into unprivileged sandboxes.
Apache License 2.0
648 stars 94 forks source link

enroot import hangs at 53% #157

Open ekelsen opened 1 year ago

ekelsen commented 1 year ago

I've not had issues with importing before, but for some reason with one particular container, it simply hangs at 53% and doesn't make progress even after hours of waiting. I can (privately) provide access to the container if it will help debug.

[INFO] Fetching image

9ff3f3d600f5c740cbf42a03d6439a3580cf5f25d5134f97bbcb8d0463e671bd

[INFO] Extracting image content... [INFO] Creating squashfs filesystem...

Parallel mksquashfs: Using 128 processors Creating 4.0 filesystem on ..., block size 131072. [====================================================================- ] 225692/419108 53%

ekelsen commented 1 year ago

Actually it is enough to simply try to import the latest pytorch NGC container:

sudo enroot import 'dockerd://nvcr.io/nvidia/pytorch:23.04-py3'

hangs at 65%

I've verified that pytorch:23.03-py3 works just fine.

flx42 commented 1 year ago

I can't repro, this might be related to your underlying filesystem. But first of all, does it work with docker:// instead of dockerd://?

Which version of mksquashfs do you have? I'm on 4.5.1 from Ubuntu 23.04, if your version is older, you could try compiling a recent release from sources: https://github.com/plougher/squashfs-tools