TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Dockerized – Run CLI tools without installation

78 pointsby datastackabout 3 years ago
Dockerized is like npx for unix tools: Run popular cli tools without installation.<p>Example:<p><pre><code> dockerized npm init dockerized python2 somescript.py </code></pre> Run an older version of a tool:<p><pre><code> NODE_VERSION=15.0 dockerized node </code></pre> Use cases:<p>- Maintaining multiple versions of an app<p>- Installing without polluting host machine<p>- Quickly run some commands you may not have installed<p>Features:<p>- intuitive use. Just the original command, but with &#x27;dockerized&#x27; in front.<p>- dockerized apps can access the current directory and read&#x2F;modify files, just like native apps.<p>- no need to know which docker image this package comes from.<p>- support for tools which don&#x27;t have an official docker image.<p>- container cleaned up after use.<p>- ability to specify the version.<p>- version specification per directory (share exact versions with your team mates).<p>The inner workings are pretty simple, it&#x27;s just a docker-compose file.<p>As expected with dockerization, there are limitations related to networking, and file persistence (outside current dir), but it can make life easy for simple scenarios.<p>Pull requests welcome!

9 comments

qbasic_foreverabout 3 years ago
Check out whalebrew for a similar idea but a bit more featureful like a registry of images and search, extensibility, etc: <a href="https:&#x2F;&#x2F;github.com&#x2F;whalebrew&#x2F;whalebrew" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;whalebrew&#x2F;whalebrew</a><p>EnvCLI is another one that&#x27;s been on my list to check out. It looks quite nice too: <a href="https:&#x2F;&#x2F;github.com&#x2F;EnvCLI&#x2F;EnvCLI" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;EnvCLI&#x2F;EnvCLI</a>
评论 #30630741 未加载
评论 #30630383 未加载
评论 #30628732 未加载
mprime1about 3 years ago
I use NIX for this<p><pre><code> nix-shell -p go_1_17 </code></pre> Pops a native shell on my system with Go installed. Nothing else on my system is affected.
评论 #30630026 未加载
yewenjieabout 3 years ago
Comma lets you run all Nix packages (more than 80000) quickly &quot;without installation&quot;. It is basically a wrapper around `nix run` though. Honestly, `nix run` and `nix shell` help you become adventurous removing your fear of breaking things.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;nix-community&#x2F;comma" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;nix-community&#x2F;comma</a>
评论 #30631173 未加载
CottonMcKnightabout 3 years ago
The AWS CLI, at least, promotes their official Docker image with instructions in the docs.<p><a href="https:&#x2F;&#x2F;docs.aws.amazon.com&#x2F;cli&#x2F;latest&#x2F;userguide&#x2F;install-cliv2-docker.html" rel="nofollow">https:&#x2F;&#x2F;docs.aws.amazon.com&#x2F;cli&#x2F;latest&#x2F;userguide&#x2F;install-cli...</a>
评论 #30629071 未加载
radarsat1about 3 years ago
Reminds me a bit of what 0install was trying to accomplish [1]<p>[1]: <a href="https:&#x2F;&#x2F;docs.0install.net&#x2F;basics&#x2F;first-launch&#x2F;" rel="nofollow">https:&#x2F;&#x2F;docs.0install.net&#x2F;basics&#x2F;first-launch&#x2F;</a>
klysmabout 3 years ago
I feel like this use of containers is similar to how buildah works under the hood, except you are applying side effects to the host system.
pacifikaabout 3 years ago
This is great, looking forward to play about with it and see if we can get zero config tool chains setup
encryptluks2about 3 years ago
This is just a wrapper script that does something similar to `docker run -v $(pwd):$(pwd)`. I mean, I could create a script that simply adds a bash alias to another program like `alias ls=&quot;ls -la&quot;`, but is it really that useful to announce it and act like it is unique, compared to something like toolbox or bubblewrap or firejail?
评论 #30629009 未加载
minrootabout 3 years ago
You have absolutely lost your mind
评论 #30657423 未加载