Skip to content
This container can be thought of as the administrator’s shell.
Makefile Dockerfile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Dockerfile Update Dockerfile Aug 13, 2019
Makefile Update Makefile Aug 3, 2019
README.md Add Makefile Aug 3, 2019
motd

README.md

Debug-Container

Docker Repository on Quay

This container can be thought of as the administrator’s shell. Many of the debugging tools (such as ping, traceroute, and mtr) and man pages that an administrator might use to diagnose problems on the host are in this container.

  • Networking-related commands:
    • iproute
    • net-tools
    • mtr
    • dig
    • ping
  • Generic commands:
    • vim
    • git
    • htop

Download

docker pull quay.io/pichuang/debug-container

How to use debug-container on specific hosts?

  1. Independent Mode (Container on OS):
docker run -it --rm --name debug-container quay.io/pichuang/debug-container
  1. Mixed Mode (Container within OS):
docker run -it --rm --name debug --privileged \
       --ipc=host --net=host --pid=host -e HOST=/host \
       -e NAME=debug-container -e IMAGE=pichuang/debug-container \
       -v /run:/run -v /var/log:/var/log \
       -v /etc/localtime:/etc/localtime -v /:/host \
       quay.io/pichuang/debug-container

How to use debug-container on Red Hat OpenShift v3?

  1. Running one Pod in project and any node
oc project <PROJECT NAME>
oc run ocp-debug-container --image=quay.io/pichuang/debug-container \
   --restart=Never --attach -i --tty --rm
  1. Running one Pod in project and specific node
oc project <PROJECT NAME>
oc run ocp-debug-container --image=quay.io/pichuang/debug-container \
   --restart=Never --attach -i --tty --rm \
   --overrides='{ "apiVersion": "v1", "spec": { "nodeSelector":{"<KEY>":"<VALUE>"}}}'
  • Remind: Please replace <key>:<value>

How to build the container images?

  • If you choose buildah...
make build-buildah
  • If you choose docker...
make build-docker

Author

You can’t perform that action at this time.