Skip to content
项目

关于

7-Zip Docker image

系统与基础设施

这些数字如何统计

实测星标增长

24小时
0
7天
0
15天
正在收集历史
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

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.

探索相关项目

加载中…