Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update 05_persisting_data.md #21697

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions content/get-started/workshop/05_persisting_data.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,33 @@
The `Mountpoint` is the actual location of the data on the disk. Note that on most machines, you will
need to have root access to access this directory from the host.

This path is relative to the Linux host machine. If you're running containers on Windows OS, you're likely using Linux containers. While Windows containers have limited image support compared to Linux containers, you can switch to Windows containers and run the following command to observe how the relative path of volumes changes from Linux-based to Windows-based paths.

Check failure on line 197 in content/get-started/workshop/05_persisting_data.md

View workflow job for this annotation

GitHub Actions / vale

[vale] reported by reviewdog 🐶 [Vale.Terms] Use '(?-i)[A-Z]{2,}'?s' instead of 'containers'. Raw Output: {"message": "[Vale.Terms] Use '(?-i)[A-Z]{2,}'?s' instead of 'containers'.", "location": {"path": "content/get-started/workshop/05_persisting_data.md", "range": {"start": {"line": 197, "column": 68}}}, "severity": "ERROR"}

Check failure on line 197 in content/get-started/workshop/05_persisting_data.md

View workflow job for this annotation

GitHub Actions / vale

[vale] reported by reviewdog 🐶 [Vale.Terms] Use '(?-i)[A-Z]{2,}'?s' instead of 'containers'. Raw Output: {"message": "[Vale.Terms] Use '(?-i)[A-Z]{2,}'?s' instead of 'containers'.", "location": {"path": "content/get-started/workshop/05_persisting_data.md", "range": {"start": {"line": 197, "column": 120}}}, "severity": "ERROR"}

Check failure on line 197 in content/get-started/workshop/05_persisting_data.md

View workflow job for this annotation

GitHub Actions / vale

[vale] reported by reviewdog 🐶 [Vale.Terms] Use '(?-i)[A-Z]{2,}'?s' instead of 'containers'. Raw Output: {"message": "[Vale.Terms] Use '(?-i)[A-Z]{2,}'?s' instead of 'containers'.", "location": {"path": "content/get-started/workshop/05_persisting_data.md", "range": {"start": {"line": 197, "column": 146}}}, "severity": "ERROR"}

Check failure on line 197 in content/get-started/workshop/05_persisting_data.md

View workflow job for this annotation

GitHub Actions / vale

[vale] reported by reviewdog 🐶 [Vale.Terms] Use '(?-i)[A-Z]{2,}'?s' instead of 'containers'. Raw Output: {"message": "[Vale.Terms] Use '(?-i)[A-Z]{2,}'?s' instead of 'containers'.", "location": {"path": "content/get-started/workshop/05_persisting_data.md", "range": {"start": {"line": 197, "column": 202}}}, "severity": "ERROR"}

Check failure on line 197 in content/get-started/workshop/05_persisting_data.md

View workflow job for this annotation

GitHub Actions / vale

[vale] reported by reviewdog 🐶 [Vale.Terms] Use '(?-i)[A-Z]{2,}'?s' instead of 'containers'. Raw Output: {"message": "[Vale.Terms] Use '(?-i)[A-Z]{2,}'?s' instead of 'containers'.", "location": {"path": "content/get-started/workshop/05_persisting_data.md", "range": {"start": {"line": 197, "column": 240}}}, "severity": "ERROR"}

Check failure on line 197 in content/get-started/workshop/05_persisting_data.md

View workflow job for this annotation

GitHub Actions / vale

[vale] reported by reviewdog 🐶 [Vale.Terms] Use '(?-i)[A-Z]{2,}'?s' instead of 'volumes'. Raw Output: {"message": "[Vale.Terms] Use '(?-i)[A-Z]{2,}'?s' instead of 'volumes'.", "location": {"path": "content/get-started/workshop/05_persisting_data.md", "range": {"start": {"line": 197, "column": 317}}}, "severity": "ERROR"}

Check failure on line 197 in content/get-started/workshop/05_persisting_data.md

View workflow job for this annotation

GitHub Actions / vale

[vale] reported by reviewdog 🐶 [Vale.Terms] Use '(?-i)[A-Z]{2,}'?s' instead of 'changes'. Raw Output: {"message": "[Vale.Terms] Use '(?-i)[A-Z]{2,}'?s' instead of 'changes'.", "location": {"path": "content/get-started/workshop/05_persisting_data.md", "range": {"start": {"line": 197, "column": 325}}}, "severity": "ERROR"}

Check failure on line 197 in content/get-started/workshop/05_persisting_data.md

View workflow job for this annotation

GitHub Actions / vale

[vale] reported by reviewdog 🐶 [Vale.Terms] Use '(?-i)[A-Z]{2,}'?s' instead of 'paths'. Raw Output: {"message": "[Vale.Terms] Use '(?-i)[A-Z]{2,}'?s' instead of 'paths'.", "location": {"path": "content/get-started/workshop/05_persisting_data.md", "range": {"start": {"line": 197, "column": 367}}}, "severity": "ERROR"}

```console
docker volume create todo-app
docker volume ls
```

you will see volume by name todo-app, now perform volume inspection to see it's path

Check failure on line 204 in content/get-started/workshop/05_persisting_data.md

View workflow job for this annotation

GitHub Actions / vale

[vale] reported by reviewdog 🐶 [Vale.Terms] Use '(?-i)[A-Z]{2,}'?s' instead of 'it's'. Raw Output: {"message": "[Vale.Terms] Use '(?-i)[A-Z]{2,}'?s' instead of 'it's'.", "location": {"path": "content/get-started/workshop/05_persisting_data.md", "range": {"start": {"line": 204, "column": 76}}}, "severity": "ERROR"}

```console
docker volume inspect todo-app
```
your output will look like
```
[
{
"CreatedAt": "2024-12-16T11:24:56+01:00",
"Driver": "local",
"Labels": null,
"Mountpoint": "C:\\ProgramData\\Docker\\volumes\\abc\\_data",
"Name": "abc",
"Options": null,
"Scope": "local"
}
]
```

## Summary

In this section, you learned how to persist container data.
Expand Down
Loading