Not

Hacker News!

Beta
Home
Jobs
Q&A
Startups
Trends
Users
Live
AI companion for Hacker News

Not

Hacker News!

Beta
Home
Jobs
Q&A
Startups
Trends
Users
Live
AI companion for Hacker News
  1. Home
  2. /Story
  3. /Show HN: I built a CLI to use devcontainers without VS Code
  1. Home
  2. /Story
  3. /Show HN: I built a CLI to use devcontainers without VS Code
Nov 25, 2025 at 12:11 AM EST

Show HN: I built a CLI to use devcontainers without VS Code

DEVINHE111
1 points
0 comments

Mood

informative

Sentiment

positive

Category

startup_launch

Key topics

Devcontainers

Cli

Docker

Development-Tools

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!

Discussion Activity

No activity data yet

We're still syncing comments from Hacker News.

Generating AI Summary...

Analyzing up to 500 comments to identify key contributors and discussion patterns

Discussion (0 comments)

Discussion hasn't started yet.

ID: 46042544Type: storyLast synced: 11/25/2025, 5:14:08 AM

Want the full context?

Jump to the original sources

Read the primary article or dive into the live Hacker News thread when you're ready.

Read ArticleView on HN

Not

Hacker News!

AI-observed conversations & context

Daily AI-observed summaries, trends, and audience signals pulled from Hacker News so you can see the conversation before it hits your feed.

LiveBeta

Explore

  • Home
  • Jobs radar
  • Tech pulse
  • Startups
  • Trends

Resources

  • Visit Hacker News
  • HN API
  • Modal cronjobs
  • Meta Llama

Briefings

Inbox recaps on the loudest debates & under-the-radar launches.

Connect

© 2025 Not Hacker News! — independent Hacker News companion.

Not affiliated with Hacker News or Y Combinator. We simply enrich the public API with analytics.