Skip to content
المشاريع

حول

7-Zip Docker image

الأنظمة والبنية التحتية

كيف تُقاس هذه الأرقام

النمو المقاس للنجوم

خلال 24 ساعة
٠
خلال 7 أيام
٠
خلال 15 يومًا
جارٍ جمع السجل
خلال شهر
جارٍ جمع السجل

تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.

README.md

الأصل

Latest Version Build Status Docker Stars Docker Pulls
Become a sponsor Donate Paypal

About

Docker image for 7-Zip built from source. It includes upstream 7zz as the default command, 7z as its alias, and the 7za and 7zr compatibility binaries.

[!TIP] Want to be notified of new releases? Check out 🔔 Diun (Docker Image Update Notifier) project!


Build locally

git clone https://github.com/crazy-max/docker-7zip.git
cd docker-7zip

# Build image and output to docker (default)
docker buildx bake

# Build multi-platform image
docker buildx bake image-all

# Test archive creation and extraction on all supported platforms
docker buildx bake smoke-test

Image

Registry Image
Docker Hub crazymax/7zip
GitHub Container Registry ghcr.io/crazy-max/7zip

Following platforms for this image are available:

$ docker buildx imagetools inspect crazymax/7zip --format "{{json .Manifest}}" | \
  jq -r '.manifests[] | select(.platform.os != null and .platform.os != "unknown") | .platform | "\(.os)/\(.architecture)\(if .variant then "/" + .variant else "" end)"'

linux/amd64
linux/arm/v6
linux/arm/v7
linux/arm64
linux/ppc64le
linux/riscv64
linux/s390x

Usage

Compress the mounted folder /root to root.7z :

docker run --rm --workdir /data -it -v /root:/data crazymax/7zip 7zz a root.7z .

Extract archive root.7z from the mounted folder /root :

docker run --rm --workdir /data -it -v /root:/data crazymax/7zip 7zz x root.7z

To stream a file from an archive to stdout, use -so. Even when you pipe or redirect the output on the host, Docker can log the entire extracted file. Use --log-driver none to disable container logging for that run.

docker run --rm --log-driver none --workdir /data -v "$PWD:/data" crazymax/7zip 7zz e -so heavy.7z payload.bin > extracted.bin

Use tar if you want to preserve Unix ownership / permissions :

docker run --rm --workdir /data -it -v /root:/data crazymax/7zip sh -c 'tar cvf - * | 7zz a -si root.tar.7z'

Contributing

Want to contribute? Awesome! The most basic way to show your support is to star the project, or to raise issues. You can also support this project by becoming a sponsor on GitHub or by making a PayPal donation to ensure this journey continues indefinitely!

Thanks again for your support, it is much appreciated! :pray:

License

MIT. See LICENSE for more details.
Icon credit to finfin.

استكشف مشاريع مشابهة ومرتبطة

جارٍ التحميل…