Sign inSign up

clgeng/sandbox

By clgeng

•Updated 7 months ago

Enhanced Docker sandbox templates with oh-my-zsh, VS Code tunnel support and other useful tools

Image
Security
Machine learning & AI
Developer tools
0

824

clgeng/sandbox repository overview

⁠Docker Sandbox Templates

Enhanced Docker Sandbox⁠ templates built on top of official docker/sandbox-templates images.

Adds a better shell experience and VS Code tunnel support:

  • zsh + oh-my-zsh as default shell
  • VS Code CLI for tunnel-based IDE access
  • git-delta for better diffs
  • bat, autojump, vim

⁠Usage

  1. Create a sandbox container from a template image:

    cd /path/to/your/repo
    docker sandbox create -t clgeng/sandbox:claude-code-260317 shell .
    
  2. Start an interactive shell in the sandbox container:

    docker sandbox exec -it -w $PWD <sandbox-name> zsh
    

    Avoid using docker sandbox run ... shell as it always uses bash, ignoring the template's default shell.

  3. Start VS Code tunnel from the sandbox container:

    code tunnel --accept-server-license-terms
    

    The first time you run this, it will prompt you to authenticate with GitHub.

    After the first time, you can start it in the background:

    code tunnel --accept-server-license-terms > /tmp/tunnel.log 2>&1 &
    
  4. Connect to the tunnel from VS Code on your machine:

    • Install the Remote - Tunnels extension
    • Cmd+Shift+P > Remote-Tunnels: Connect to Tunnel...
    • Sign in with the same GitHub account, pick the tunnel

    ⚠️ If your repo has devcontainer.json, disable the "Dev Containers" extension before connecting to the tunnel, as it will try to start a dev container which doesn't work in this setup.

  5. Save your sandbox state as a new template image (optional):

    docker sandbox save <sandbox-name> <new-template-image>
    

Tag summary

Content type

Image

Digest

sha256:45f6aba85…

Size

525.6 MB

Last updated

7 months ago

docker pull clgeng/sandbox:shell-260317