direktiv / vorteil

turn your applications and containers into micro virtual machines
https://direktiv.io
Apache License 2.0
174 stars 13 forks source link

Container Converter Hangs When Downloading images with high layer count #76

Closed jalfvort closed 4 years ago

jalfvort commented 4 years ago

Problem description

When trying to container convert images with a large layer count, the convert-container command seems to hang.

Expected behaviour

convert-container command should download all layers and extract them to the output dir.

Actual behaviour

All visible layers are downloaded and then the process hangs.

Steps to reproduce

I've been able to successfully reproduce the issue on these two images:

Example :

$ ./cli projects convert-container tensorflow/syntaxnet ./tensor
convert image: tensorflow/syntaxnet:latest
registry docker.io, url https://registry-1.docker.io
downloading manifest file
downloading 25 layers
layer cce4cca5:   0s [==============================================================================] 215.0 b / 215.0 b
layer e61641c8:   0s [==============================================================================] 579.5 KiB / 579.5 KiB
layer 7d27bd3d: done [==============================================================================] 40.6 MiB / 40.6 MiB
layer 2726297b: done [==============================================================================] 17.7 MiB / 17.7 MiB
layer 6d827a3e: done [==============================================================================] 49.1 MiB / 49.1 MiB
layer 68262275: done [==============================================================================] 242.0 b / 242.0 b
layer c03b117f:   0s [==============================================================================] 124.3 MiB / 124.3 MiB
layer 821a1547: done [==============================================================================] 282.3 KiB / 282.3 KiB
layer 74cc3387:   0s [==============================================================================] 144.7 MiB / 144.7 MiB
layer a8424c51: done [==============================================================================] 19.2 MiB / 19.2 MiB

At this point it hangs, I left it for about 5 minutes

System details

Ubuntu 20