Gremlin (experimental)

Verified Publisher

0

docker/gremlin-extension:0.0.33

By Docker Inc.

Updated over 1 year ago

A container debugging toolbox. Attach: Replacement of docker exec. Rdb: Easy remote debug.

Attach

A replacement of the docker exec. Works with any container, brings bash/fish/zsh shell, NixOS based paket manager, dynamic port forwarding, nice prompt and more.

Usage: gremlin attach [OPTIONS] CONTAINER.

Built-in commands:

  • install: add any tool available on NixOS
  • uninstall
  • forward --port : [args...]: for dynamic port forwarding

Options:

  • --root join as root user (UID=0)
  • --shell select bash, fish or zsh shell (default auto)
  • --privileged pass all available linux capabilities

The original/target container stays untouched/unmodified.

Remote Debug

Easy remote debug setup with bundled debuggers.

Usage: gremlin rdb -p PORT CONTAINER.

Supported debuggers/languages:

  • delve (Go)
  • gdb (Rust, C, C++, D - see official documentation for full list)


Supports mac and linux (windows coming soon).

For more details run gremlin --help.

Resources