You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[CodeSandbox](https://codesandbox.io/) provides cloud development environments running on a microVM architecture. VM specs start at 2 vCPUs + 2 GB RAM per environment (free tier) and can go up to 16 vCPUs + 32 GB RAM.
159
+
160
+
When you import a GitHub repository into CodeSandbox, it will automatically provision a dedicated environment for every branch. Thanks to memory snapshotting, CodeSandbox then resumes and branches an environment in under two seconds.
161
+
162
+
163
+
CodeSandbox offers support for multiple editors, so you can code using the CodeSandbox web editor, VS Code, or the CodeSandbox iOS app.
164
+
165
+
**Tip:** After importing a repository into CodeSandbox, you can use the built-in UI to configure the environment using dev containers.
166
+
167
+
#### <ahref="#codesandbox-specific-properties"name="codesandbox-specific-properties"class="anchor"> Product specific properties </a>
168
+
CodeSandbox has built-in support for any programming language and supports Debian and Ubuntu-based images.
169
+
170
+
All properties specific to CodeSandbox are placed within a `.codesandbox` folder at root level. Typically, this will contain a `tasks.json` file, which defines the commands to be run at startup or with a click.
171
+
172
+
More details about these can be found in the CodeSandbox [documentation](https://codesandbox.io/docs/learn/repositories/task).
173
+
174
+
#### Product specific limitations
175
+
176
+
CodeSandbox runs dev containers using rootless Podman instead of Docker. CodeSandbox also uses [devcontainers/cli](https://github.com/devcontainers/cli) to manage dev containers. So any limitations of rootless Podman and Dev Container CLI should apply to CodeSandbox.
177
+
178
+
179
+
The following properties apply differently to CodeSandbox.
180
+
181
+
| Property or variable | Type | Description |
182
+
|----------|---------|----------------------|
183
+
|`forwardPorts`| array | CodeSandbox does not need this property. All ports opened in dev containers will be mapped to a public URL automatically. |
184
+
185
+
|`portsAttributes`| object | CodeSandbox does not yet support this property. Ports are attached to tasks configured in `.codesandbox/tasks.json` and are attributed to the tasks.|
186
+
|`otherPortsAttributes`| object | CodeSandbox does not yet support this property. |
187
+
|`remoteUser`| string | CodeSandbox currently ignores this property and overrides this as `root`. CodeSandbox uses rootless Podman to run containers. Running with a non-root remote user is the same as running as a root remote user in rootless Podman, from a security perspective. CodeSandbox plans on supporting this in the future. |
188
+
|`shutdownAction`| string | Does not apply to CodeSandbox. |
189
+
190
+
|`capAdd`| array | CodeSandbox does not support adding docker capabilities. As the containers are run as a non-root user, capabilities that need root access will not work. |
191
+
192
+
|`features`| object | CodeSandbox automatically adds docker-cli to the container and connects to the host socket. Features like `docker-in-docker` and `docker-outside-of-docker` will work a bit differently. As the docker-cli and socket from host are accessible in the container, most use cases should work as expected. |
193
+
|`${localEnv:VARIABLE_NAME}`| Any | For CodeSandbox, the host is in the cloud rather than in your local machine.|
194
+
|`hostRequirements`| object | CodeSandbox does not yet support this property. |
[DevPod](https://github.com/loft-sh/devpod) is a client-only tool to create reproducible developer environments based on a devcontainer.json on any backend. Each developer environment runs in a container and is specified through a devcontainer.json. Through DevPod providers these environments can be created on any backend, such as the local computer, a Kubernetes cluster, any reachable remote machine or in a VM in the cloud.
0 commit comments