Hi HN!<p>I've been working on adding in-depth Docker support to HTTP Toolkit for literally years (I added it as GitHub issue #1 when I started the project - <a href="https://github.com/httptoolkit/httptoolkit/issues/1" rel="nofollow">https://github.com/httptoolkit/httptoolkit/issues/1</a>). I think it's finally ready :-).<p>HTTP Toolkit is an open-source network debugging tool that lets you inspect and rewrite any HTTP or HTTPS traffic, primarily focused on Android & web until recently, and this now makes it fully capable for a lot more backend workflows and other neat use cases.<p>Internally, this uses some tricks to intercept all your interactions with the Docker API (like creating a container) for processes from an intercepted terminal window, and then automatically transform all those API interactions en route to inject extra environment variables & configuration, and thereby make almost any application redirect traffic via the proxy and trust its certificate for HTTPS.<p>I imagine the HN crowd might be keen on looking under the hood - there's a full write-up on how this works at <a href="https://httptoolkit.com/docs/guides/docker/#the-technical-details" rel="nofollow">https://httptoolkit.com/docs/guides/docker/#the-technical-de...</a> and the source is all available on GitHub: <a href="https://github.com/httptoolkit/" rel="nofollow">https://github.com/httptoolkit/</a>.<p>Give it a go, let me know if you have any questions or feedback at all :-)