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
Copy file name to clipboardExpand all lines: content/docs/local-development/docker.mdx
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,8 @@ description: Setup a local development environment using Docker
4
4
---
5
5
6
6
<Callouttype="error">
7
-
This method only works on **macOS or Linux**. Windows is not supported.
7
+
This method isn't officially supported on Windows. While it may work, expect
8
+
potential issues.
8
9
</Callout>
9
10
10
11
This approach offers several advantages compared to [Vagrant](vagrant):
@@ -22,14 +23,13 @@ This approach offers several advantages compared to [Vagrant](vagrant):
22
23
- Docker Engine
23
24
- On Linux, see your distro's wiki or [Docker's docs](https://docs.docker.com/engine/install/) for setting up Docker alongside its services
24
25
- On macOS, [OrbStack](https://orbstack.dev/) is recommended to provide Docker Engine, but [Docker Desktop](https://www.docker.com/products/docker-desktop/) can be used instead
25
-
- If using Docker Desktop on macOS, install [`docker-mac-net-connect`](https://github.com/chipmk/docker-mac-net-connect)
26
26
-`buildx` and `compose` Docker extensions
27
27
- These are installed by default with OrbStack and Docker Desktop
28
28
29
29
## Limitations
30
30
31
-
- Rootless Docker (Linux) is not supported
32
31
- To delete or modify server data on Linux, you'll need to use `sudo` as Docker creates the volume binds as root
32
+
- You can use rootless Docker to workaround this
33
33
- If you move the repositories location, you'll need to [reset the server data](#resetting-server-data) as paths are hardcoded in the container
34
34
35
35
## Initial setup
@@ -104,9 +104,9 @@ To **irreversibly** reset your Docker data:
104
104
105
105
1. Enter the following command in your terminal (`sudo` is only required on Linux):
106
106
107
-
```bash
108
-
sudo rm -rf var vendor .env srv
109
-
```
107
+
```bash
108
+
sudo rm -rf var vendor .env srv
109
+
```
110
110
111
111
1. Put the Docker compose back up again (`pnpm compose`) and server data should be recreated
0 commit comments