A Collection of Docker Images To Solve All Your Debugging Needs
<p>Whenever I troubleshoot anything container-related, I look for a good container image containing the right tools to troubleshoot and/or solve the problem. However, finding such an image, or assembling my own, is time-consuming and honestly just way too much effort.</p>
<p>So, to save you and me the hassle of finding or building such image(s), here’s a list of container images that will satisfy all the troubleshooting needs.</p>
<h1>The Images</h1>
<p>While building a “Swiss army knife container image” might seem like a good idea, there are always more things to add, and at some point, such an image becomes too big and hard to maintain.</p>
<p>A better option is to use an image such as <code><a href="https://github.com/teaxyz/infuser" rel="noopener ugc nofollow" target="_blank">infuser</a></code>. <code>infuser</code> is built around <code>tea</code> CLI, which automatically installs any tool that you invoke. Let's say you run <code>curl</code> in a container, but it's not installed. No problem, <code>tea</code> will first install it and then invoke your command:</p>
<pre>
docker run --rm -it ghcr.io/teaxyz/infuser
...
# curl is not installed...
tea $ curl https://google.com
# installed: ~/.tea/curl.se/ca-certs/v2023.5.30
# installed: ~/.tea/curl.se/v8.2.1
# installed: ~/.tea/openssl.org/v1.1.1u
<HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=utf-8">
<TITLE>301 Moved</TITLE></HEAD><BODY>
<H1>301 Moved</H1>
The document has moved
<A HREF="https://www.google.com/">here</A>.
</BODY></HTML>
# ... but worked anyway!
tea $</pre>
<p>If you’d rather have an image with everything preinstalled, yet you’re too lazy to write a <code>Dockerfile</code> and build the image, then you can use <code>apko.kontain.me</code> registry. This registry allows you to build an image with a specified set of packages simply by pulling it. Here’s the code</p>
<p><a href="https://betterprogramming.pub/a-collection-of-docker-images-to-solve-all-your-debugging-needs-189973aae5c0">Visit Now</a></p>