Remix.run Logo
mkagenius 10 hours ago

A way to run claude code inside a apple container -

  $ container system start

  $ container run -d --name myubuntu ubuntu:latest sleep infinity

  $ container exec myubuntu bash -c "apt-get update -qq && apt-get install -y openssh-server"

  $ container exec myubuntu bash -c "
    apt-get install -y curl &&
    curl -fsSL https://deb.nodesource.com/setup_lts.x |
  bash - &&
    apt-get install -y nodejs
  "

  $ container exec myubuntu npm install -g @anthropic-ai/claude-code

  $ container exec myubuntu claude --version
emmelaich 7 hours ago | parent | next [-]

Thanks, hadn't heard of this! In homebrew, too.

https://github.com/apple/container

sunnybeetroot 3 hours ago | parent | prev [-]

Lume is also a nice wrapper around it