Skip to content

Commit 60fdb3c

Browse files
authored
Merge pull request #24746 from dvdksn/docs/sbx-linux-state-paths
Add Linux state paths to troubleshooting
2 parents 1acfdfc + f53260b commit 60fdb3c

File tree

1 file changed

+23
-2
lines changed

1 file changed

+23
-2
lines changed

content/manuals/ai/sandboxes/troubleshooting.md

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,18 +180,39 @@ As a last resort, if `sbx reset` doesn't resolve your issue, you can remove the
180180
`sbx` state directory entirely. This deletes all sandbox data, configuration, and
181181
cached images. Stop all running sandboxes first with `sbx reset`.
182182

183-
macOS:
183+
{{< tabs >}}
184+
{{< tab name="macOS" >}}
184185

185186
```console
186187
$ rm -rf ~/Library/Application\ Support/com.docker.sandboxes/
187188
```
188189

189-
Windows:
190+
{{< /tab >}}
191+
{{< tab name="Windows" >}}
190192

191193
```powershell
192194
> Remove-Item -Recurse -Force "$env:LOCALAPPDATA\DockerSandboxes"
193195
```
194196

197+
{{< /tab >}}
198+
{{< tab name="Linux" >}}
199+
200+
Sandbox state on Linux follows the XDG Base Directory specification and is
201+
spread across three directories:
202+
203+
```console
204+
$ rm -rf ~/.local/state/sandboxes/
205+
$ rm -rf ~/.cache/sandboxes/
206+
$ rm -rf ~/.config/sandboxes/
207+
```
208+
209+
If you have set custom `XDG_STATE_HOME`, `XDG_CACHE_HOME`, or
210+
`XDG_CONFIG_HOME` environment variables, replace `~/.local/state`,
211+
`~/.cache`, and `~/.config` with the corresponding values.
212+
213+
{{< /tab >}}
214+
{{< /tabs >}}
215+
195216
## Report an issue
196217

197218
If you've exhausted the steps above and the problem persists, file a GitHub

0 commit comments

Comments
 (0)