An alpine container with some debugging tools installed. For every release there is a normal container that includes only the essentials, as well as an extended container, which includes more tools at the cost of size.
The following tools are currently included in Docker image pgschk/alpine-toolkit:latest
:
- telnet
- netcat
- curl
- tcpdump
Additionally there is an extended image, which includes more tools at the cost of being larger.
The image pgschk/alpine-toolkit:latest-extended
additionally includes:
- mosquitto-clients (mosquitto_sub, mosquitto_pub)
- strace
To add more packages, build the container with the build argument "EXTRA_PACKAGES" set to a list of Alpine packages:
docker buildx build --build-arg EXTRA_PACKAGES="mosquitto-clients" -t alpine-toolkit:local .
You can use kubectl debug
to attach the container to an existing pod to get access to the debugging tools.
We will assume that our pod is named "my-pod" with a container "my-container", which we want to attach to:
kubectl debug -it my-pod --image=pgschk/alpine-toolkit --target=mycontainer