I

I built a CLI to use devcontainers without VS Code

Hacker News

I built a CLI to use devcontainers without VS Code

Hey HN, author here. I built Container-Make (cm) because I was tired of maintaining both a Makefile (for terminal users) and a .devcontainer folder (for VS Code users) in my projects. I wanted devcontainer.json to be the single source of truth, but I didn't want to be forced to use VS Code. The Problem: Running dev containers from the CLI manually is painful. You have to handle docker run flags, volume mounts, port forwarding, and worst of all—file permissions on Linux. How cm solves it: It parses your standard devcontainer.json and spins up ephemeral containers to run commands. It acts like make, but everything runs inside the container defined by your config. Technical Details (for the curious): Language: Written in Go (1.25+) using the official Docker SDK. Permission Handling: This was the hardest part. I implemented a dynamic entrypoint script that checks the uid/gid of your workspace and creates a matching user inside the container on-the-fly using adduser/su-exec. This solves the "files owned by root" issue on Linux host mounts. TTY & Signals: It puts the terminal in raw mode and forwards signals (SIGINT/SIGTERM) correctly, so interactive tools like htop or vim work seamlessly. Performance: It leverages Docker BuildKit for caching. Current Status: It supports image, build.dockerfile, forwardPorts, postCreateCommand hooks, and environment variables. "Features" support is currently being worked on. Repo: https://github.com/UPwith-me/Container-Maker.git I’d love to hear your feedback on the implementation, specifically around the signal handling logic!

Share card

Actual performance

4points
Did not reach leaderboard

Launch Intel predictions

Analyze your own launch →
Indie HackersFits the IH revenue-focused audience · Strong signals: supports · Missing: reddit linkedin, podcasting, created
94%94% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
Product HuntOn track for Day 1 leaderboard · Strong signals: user, dock, single · Missing: mac, agents, macos
94%94% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
AppSumoMay struggle as an AppSumo deal · Strong signals: host, users · Missing: plus, platform, intuitive
45%45% predicted probability of success on AppSumo, based on ML models trained on real launch data.
Hacker NewsMay not resonate with HN audience · Strong signals: ide, io · Missing: https docs, excited, just released
39%39% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
TrustMRRLess likely to generate early MRR · Strong signals: users · Missing: mobile apps, ios, personal
39%39% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Strong signals: active · Missing: arr, mrr, revenue
17%17% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Missing: web3, chat, crypto
0%0% predicted probability of success on BetaList, based on ML models trained on real launch data.

Correct prediction on native model

Similar products

Us
Use VS Code to Check in with Yourself44%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Use VS Code to Check in with Yourself

Hacker News6
I
I made a VS Code extension where you can use Mixtral 8x7B for free33%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

I made a VS Code extension where you can use Mixtral 8x7B for free

Hacker News8
Bu
Build your own Vim emulation for VS Code48%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Build your own Vim emulation for VS Code

Hacker News88
Se
Seconds to in-cluster microservices mocks in VS Code51%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Seconds to in-cluster microservices mocks in VS Code

Hacker News9
So
Sourcegraph Code Search for VS Code46%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Sourcegraph Code Search for VS Code

Hacker News12
I
I am fixing VS Code search50%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

I am fixing VS Code search

Hacker News3
Ve
Verilog HDL support for VS Code40%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Verilog HDL support for VS Code

Hacker News3
Vi
Visual Debugging in VS Code56%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Visual Debugging in VS Code

Hacker News1
Cepho
Cepho29%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Your VS Code workspace

Indie Hackers
Ty
Typewriter, my first VS Code extension46%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Typewriter, my first VS Code extension

Hacker News3