This Docker Extensions deploys the debug-ctr binary in your host and provides a UI in Docker Desktop that allows you to click on a running container to inspect it by opening a terminal into it.
Kudos to Felipe Cruz, A Software Engineer working at Docker for building this extension.
git clone https://github.com/felipecruz91/debug-ctr-extension.git
docker build -t felipecruz/debug-ctr-extension:latest .
docker extension install felipecruz/debug-ctr-extension:latest
cd ui npm install npm start
This starts a development server that listens on port 3000.
You can now tell Docker Desktop to use this as the frontend source. In another terminal run:
docker extension dev ui-source felipecruz/debug-ctr-extension:latest http://localhost:3000
In order to open the Chrome Dev Tools for your extension when you click on the extension tab, run:
docker extension dev debug felipecruz/debug-ctr-extension:latest