This is a super simple container that can be used for debugging directly inside Kubernetes.
This container is running Ubuntu 22.04 with the following tools installed for use in an interactive shell:
- Packages
vim
- For editing files in the container to adjust testscurl
- For testing APIswget
- For downloading filesdnsutils
- For testing DNStelnet
- For testing network connectionsapache2
- Webserver that the container runs via CMDlibapache2-mod-php
- PHP for Apache2iputils-ping
- Adding the ping command for basic network tests
- Services
- A simple PHP page on port 80 that will show the container IP and the headers sent to the web server.
- Other Stuff
- A stripped down version of my usual bash profile.
This container is available for linux/amd64
, and linux/arm64
There are two deployment examples included with this repo:
- docker-compose - Deploy locally and listen on port 2000
- Kubernetes - Deploy to Kubernetes in the
kube-public
namespace listening on port 80 with no ingress or service
You can also run docker run -d --name debugging -p2000:80 ahrenstein/debugging:latest
to deploy locally as well.
Busybox was too simple for some of the debugging I needed to do. I wanted a container that I can test host headers with, but also have an interactive shell with some common packages and the ability to install more via apt-get should I need them.
All linux/amd64
versions up to 5.0.0 are publicly available on Docker Hub
All linux/amd64
and linux/arm64
versions from 5.0.1 onward are publicly available on Docker Hub and GitHub Container Registry