Live data from Hacker News

Switching to Claude Code and VSCode Inside Docker

timsh.org

81–90 of 170 posts

Re: Switching to Claude Code and VSCode Inside Docker

#81

Earlier quoted context omitted.

I like the CLI for commands, but would rather work with an agent chat interface for vibing, which unfortunately I’m becoming increasingly reliant on, even though it’s gotten me into trouble with larger projects. I have many environments locally, some dependent on others, and some require local databases. I use containers in production, but not always locally. It’s almost a hellscape situation for trying to setup a fu…

> which unfortunately I’m becoming increasingly reliant on, even though it’s gotten me into trouble with larger projects You could… not do this. You know it causes you problems, you consider it unfortunate that you’re becoming more reliant on it, and yet for some reason you’re choosing to continue anyway. Why are you doing that?

You might as well ask why people addicted to gambling don’t just stop.

Re: Switching to Claude Code and VSCode Inside Docker

#82
i don’t get the worry. i run these models all day without any sandbox and even leave them running while i walk away. i haven’t had a rm -rf kind of situation ever or even a hint of model going towards it. even gemini 2.5 at it’s lowest doesn’t do that.

has anyone faced this?

Re: Switching to Claude Code and VSCode Inside Docker

#83
post #82

i don’t get the worry. i run these models all day without any sandbox and even leave them running while i walk away. i haven’t had a rm -rf kind of situation ever or even a hint of model going towards it. even gemini 2.5 at it’s lowest doesn’t do that. has anyone faced this?

same, it actually annoys me when some calls need sudo access and I need to handle it manually, I have no idea what people are doing with those tools to fear destructive actions on the system

Re: Switching to Claude Code and VSCode Inside Docker

#85

Honest question: why do people prefer developing code inside a docker? I get the benefits of docker as a deployment unit, but wouldn’t configuring a dev container and using it a hassle nonetheless, compared to not doing them at all?

Personally I don’t trust running npm/pip/gradle/etc in my own machine. I feel more secure running them in containers or VMs. Some IDEs like jetbrains’ support remote development (it’s not perfect but better than risking my own machine)

Re: Switching to Claude Code and VSCode Inside Docker

#86

Earlier quoted context omitted.

> If you are a VSCode hater (like me) What are some reasons to hate VSCode?

It’s clumsy as hell. It’s neither a good editor, which focus on being fast when doing things with text, nor a good IDE, which is more about the tooling and getting a project done. It’s trying to be both at the same time. And the result is bad at both.

I don’t know, others might be better out of the box. But once you start adding features they all become a mess. I rather just deal with a known mess and not waste time with tools.

Re: Switching to Claude Code and VSCode Inside Docker

#87

Honest question: why do people prefer developing code inside a docker? I get the benefits of docker as a deployment unit, but wouldn’t configuring a dev container and using it a hassle nonetheless, compared to not doing them at all?

If you’re like me and want to maintain a clean dev machine. I don’t want my machine to get in my way when I need to get work done. That means I don’t want some X messing things up somewhere that I didn’t know about. Older I get my memory isn’t as sharp and things like this matter.

Re: Switching to Claude Code and VSCode Inside Docker

#88
post #23

Earlier quoted context omitted.

Any interest in sharing the script?

I'm afraid it is not that shareable as it contains a lot of dependency management and setup that is specific to my setup and projects. But it's not too complicated. You could probably re-create your own version fairly quickly. It's just a Dockerfile that installs dependencies, an entrypoint that invokes claude, and some wrapper scripts that handle creating the container, passing through the prompt, and managing the r…

Just have Claude make a version of your script that's shareable for others, no?

Re: Switching to Claude Code and VSCode Inside Docker

#90
post #82

i don’t get the worry. i run these models all day without any sandbox and even leave them running while i walk away. i haven’t had a rm -rf kind of situation ever or even a hint of model going towards it. even gemini 2.5 at it’s lowest doesn’t do that. has anyone faced this?

Just because unintended things aren't happening right now, doesn't mean they won't happen. We are in the honeymoon phase of this technology where mass exploitation isn't yet being attempted.

However, if you are familiar with Pliny the Liberator's work, essentially all modern models are easily jailbroken, such that the original prompt can be overridden. All it will take for your agent is to download a malicious payload, perhaps disguised as a relevant library or documentation for the task at hand, and it can be running whatever the attacker tells it.

An 'rm -rf /' would be a pretty mild outcome. The more likely one would be the attacker silently installs malware on your machine.

Post reply on HN