Skip to content
New issue

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

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

Already on GitHub? # to your account

Docker images bigger than 5GB are not supported #617

Open
PidgeyBE opened this issue Nov 19, 2024 · 0 comments
Open

Docker images bigger than 5GB are not supported #617

PidgeyBE opened this issue Nov 19, 2024 · 0 comments
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@PidgeyBE
Copy link

PidgeyBE commented Nov 19, 2024

Hello

I'm trying to package a relatively large docker image with EIB.
The packaged .tar.zst file created by Hauler is 5.3 GB.

If I understand correctly, when SLE Micro starts, after it was installed, Hauler loads all airgapped images. This happens by extracting (?) every tar file to /tmp.
It seems that /tmp is limited to 4.8G, making Hauler fail:

Nov 19 17:55:06 localhost.localdomain sh[2769]: Error: reading file in tar archive: /tmp/hauler2726428976/blobs/sha256/f0f5fb4389cd3384679b2afb491c6faf24de9562e9991311b5a2b73868de96be: writing file: write /tmp/..491c6faf24de9562e9991311b5a2b73868de96be: no space left on device
Nov 19 17:55:06 localhost.localdomain sh[2769]: Usage:
Nov 19 17:55:06 localhost.localdomain sh[2769]:   hauler store load [flags]
Nov 19 17:55:06 localhost.localdomain sh[2769]: Flags:
Nov 19 17:55:06 localhost.localdomain sh[2769]:   -h, --help             help for load
Nov 19 17:55:06 localhost.localdomain sh[2769]:   -t, --tempdir string   overrides the default directory for temporary files, as returned by your OS.
Nov 19 17:55:06 localhost.localdomain sh[2769]: Global Flags:
Nov 19 17:55:06 localhost.localdomain sh[2769]:       --cache string       (deprecated flag and currently not used)
Nov 19 17:55:06 localhost.localdomain sh[2769]:   -l, --log-level string    (default "info")
Nov 19 17:55:06 localhost.localdomain sh[2769]:   -s, --store string       Location to create store at (default "store")
Nov 19 17:55:06 localhost.localdomain sh[2769]: 2024-11-19 17:55:06 ERR reading file in tar archive: /tmp/hauler2726428976/blobs/sha256/f0f5fb4389cd3384679b2afb491c6faf24de9562e9991311b5a2b73868de96be: writing ... no space left on device
Nov 19 17:55:06 localhost.localdomain systemd[1]: eib-embedded-registry.service: Control process exited, code=exited, status=1/FAILURE
Nov 19 17:55:06 localhost.localdomain systemd[1]: eib-embedded-registry.service: Failed with result 'exit-code'.
Nov 19 17:55:06 localhost.localdomain systemd[1]: Failed to start Load and Serve Embedded Registry.

I'm testing in a VM and results are the same for 100GB and 250GB disks.

Hauler itself mentions this in their docs: https://rancherfederal.github.io/hauler-docs/docs/known-limits

When using hauler, it will default to write temporary files to /tmp. If you do not have about 3x the amount of space available in your /tmp compared to the size of the store or the haul, then hauler may fail.

Is there any way I can make the /tmp partition larger?
Or can I make Hauler use another temp directory? They do have a --tempdir flag...

@jdob jdob added the documentation Improvements or additions to documentation label Nov 22, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

3 participants