[Media] I wrote a TUI tool in Rust to inspect layers of Docker images

285 points h3aves 29 comments
[Media] I wrote a TUI tool in Rust to inspect layers of Docker images

Hey, I've been working on a TUI tool called xray that allows you to inspect layers of Docker images.

Those of you that use Docker often may be familiar with the great dive tool that provides similar functionality. Unfortunately, it struggles with large images and can be pretty unresponsive.

My goal was to make a Rust tool that allows you to inspect an image of any size with all the features that you might expect from a tool like this like path/size filtering, convenient and easy-to-use UI, and fast startup times.

xray offers:

  • Vim motions support
  • Small memory footprint
  • Advanced path filtering with full RegEx support
  • Size-based filtering to quickly find space-consuming folders and files
  • Lightning-fast startup thanks to optimized image parsing
  • Clean, minimalistic UI
  • Universal compatibility with any OCI-compliant container image

Check it out: xray.

PRs are very much welcome! I would love to make the project even more useful and optimized.