Skip to content
프로젝트

소개

Debug `FROM scratch` containers by injecting contents of another image

시스템 및 인프라

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

injecto

CircleCI Go Version Docker Hub

injecto dynamically transfers the contents of an image into a running container, regardless of the base image of the running container.

Imagine a scenario where you're running a FROM scratch image but want to exec into the container for debugging purposes. Using injecto you could inject the contents of Alpine or any other base image into the container and then have access to its shell and package manager.

Usage

injecto can be run as either a standalone binary or via Docker.

injecto <image> <container>
docker run -it -v /var/run/docker.sock:/var/run/docker.sock -v /tmp:/tmp hightouchio/injecto <image> <container>

Example

First, let's run a container built from a FROM scratch image. joshwget/sleeper only contains a simple Go binary that spins forever.

> docker run -d joshwget/sleeper /sleeper
79f7232e5f30

Trying to exec into this container will result in an error because the base image contains no shell.

> docker exec -it 79f7232e5f30 sh
exec: \"sh\": executable file not found in $PATH

Now let's use injecto to inject Alpine.

> docker run -it -v /var/run/docker.sock:/var/run/docker.sock -v /tmp:/tmp hightouchio/injecto alpine 79f7232e5f30

If you try to exec again, you'll be in a shell!

> docker exec -it 79f7232e5f30 sh
/ #

관련 프로젝트 살펴보기

불러오는 중…