Sign inSign up

k8sclub/debugger

By k8sclub

•Updated over 6 years ago

A debug image with useful tools installed based on the official ubuntu image.

Image
0

808

k8sclub/debugger repository overview

⁠ubuntu

A debug image with useful tools installed based on the official ubuntu image.

It can be run as a sidecar, may be useful while debugging with Docker or Kubernetes containers and will auto-removed when exit.

⁠Quick Start

git clone https://github.com/icmdb/ubuntu.git ~/github.com/icmdb/ubuntu

sudo ln -s ~/github.com/icmdb/ubuntu/docker-debugger /usr/local/bin/

# run a debug container take the same pid,network,volume with <CONTAINER_NAME>
docker-debugger <CONTAINER_NAME> 

docker-debugger <CONTAINER_NAME> bash # start with bash (default is sh)

# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
# !!!    Dangerous, careful     !!!
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
docker-debuger purge              # remove all undone images (filter by "none")
docker-debuger purge containers   # remove all Exited containers (filter by 'Exited')
docker-debuger purge volumes      # remove all volumes 

# recreate all containers with docker-compose if docker-compose file exists
docker-debuger recreate

Tag summary

Content type

Image

Digest

Size

140.7 MB

Last updated

over 6 years ago

docker pull k8sclub/debugger