rzane/docker2exe
소개
Docker 이미지를 실행 파일로 변환
시스템 및 인프라측정된 스타 증가
- in 24h
- -1
- in 7 days
- -2
- in 15 days
- -1
- in 1 month
- -1
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Originaldocker2exe
This tool can be used to convert a Docker image to an executable that you can send to your friends!
Installation
Download a binary from the releases page.
$ mv docker2exe-darwin-amd64 docker2exe
$ chmod +x docker2exe
$ ./docker2exe --help
Requirements on the building device
Docker, GoLang and gzip are also required. Use your package manager to install them.
Requirements on the executing device
Docker is required.
Usage
To create a new binary:
$ docker2exe --name alpine --image alpine:3.9
This will create the following files:
dist
├── alpine-darwin-amd64
├── alpine-linux-amd64
├── alpine-windows-amd64
Now, you can run the executable:
$ dist/alpine-darwin-amd64 cat /etc/alpine-release
3.9.5
When the executable is run, we'll check for the alpine:3.9.5 image on the user's system. If it doesn't exist, the executable will automatically run:
$ docker pull alpine:3.9.5
Embedded Mode
In this mode, if the specified image doesn't exist, we'll attempt to load it from a tarball that is embeddded in the executable.
$ docker2exe --name alpine --image alpine:3.9 --embed
When creating the executable above, the image was dumped to a tarball and baked into the resulting executable:
$ docker save alpine:3.9 | gzip > alpine.tar.gz
When the executable runs, we'll check for the alpine:3.9 image on the user's system. If it doesn't exist, the executable will automatically run:
$ docker load alpine.tar.gz
For small images, this approach works great. In the example above, the resulting executable was under 10MB.
관련 프로젝트 살펴보기
불러오는 중…