Docker Example

In this example, we show how you can use Docker with CodeSandbox. Check the Dockerfile to see how we configure the container of this sandbox. You can simply edit it yourself and the container will rebuild. Make sure to fork the sandbox first by clicking "Fork" in the top left corner.

  • Every new terminal will run inside this new container, open a new terminal with CTRL ~
  • We set up an example sandbox task that runs whereis htop. Typically this would be where you run yarn run serve. You can edit it in tasks.json