← Back to context

Comment by zdragnar

3 days ago

Neither podman nor docker will help you when the current directory is your home directory, though. It sounds like that's the root problem here- someone handed the keys to the kingdom to grok, and grok did what grok does, which is look at everything it can for context.

That's why I went with a different strategy and scope: Copy the current Git repo into a sandboxes dir, mount that copy in the container. The tradeoff is disk space allocated per sandbox, but I'm OK with that.

  • Wouldn't you solve the space allocation issue by using a symbolic link?

    Sorry if it's a dumb question - I'm just getting into sandboxing for the first time myself and ran into this same thought before.

    • I'm OK with the space being taken. I want total isolation, don't want changes in my main or sandboxes to ripple to one another. As for maintaining, it's only a `rm -rf ~/sandboxes/*` away anyway.