Skip to content

Commit

Permalink
Update 05_persisting_data.md
Browse files Browse the repository at this point in the history
Added info for those running containers in Windows and are curious to find where is /var or what it would be like if they were running Windows containers
  • Loading branch information
shariqahmkhan authored Dec 16, 2024
1 parent 753cf3e commit 7ca3aae
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 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,36 @@ You should see output like the following:
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 Linux host machine and also in case you are running containers on Windows OS,

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": 78}}}, "severity": "ERROR"}
it means you are using Linux containers. Although, Windows containers have limited image support comapred

Check failure on line 198 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 'means'. Raw Output: {"message": "[Vale.Terms] Use '(?-i)[A-Z]{2,}'?s' instead of 'means'.", "location": {"path": "content/get-started/workshop/05_persisting_data.md", "range": {"start": {"line": 198, "column": 4}}}, "severity": "ERROR"}

Check failure on line 198 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": 198, "column": 30}}}, "severity": "ERROR"}

Check warning on line 198 in content/get-started/workshop/05_persisting_data.md

View workflow job for this annotation

GitHub Actions / vale

[vale] reported by reviewdog 🐶 [Docker.SentenceLength] Write short, concise sentences. (<=40 words) Raw Output: {"message": "[Docker.SentenceLength] Write short, concise sentences. (\u003c=40 words)", "location": {"path": "content/get-started/workshop/05_persisting_data.md", "range": {"start": {"line": 198, "column": 42}}}, "severity": "WARNING"}

Check failure on line 198 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": 198, "column": 60}}}, "severity": "ERROR"}

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

View workflow job for this annotation

GitHub Actions / vale

[vale] reported by reviewdog 🐶 [Vale.Spelling] Did you really mean 'comapred'? Raw Output: {"message": "[Vale.Spelling] Did you really mean 'comapred'?", "location": {"path": "content/get-started/workshop/05_persisting_data.md", "range": {"start": {"line": 198, "column": 98}}}, "severity": "ERROR"}
to Linux containers (such as contiki-ng), you can try to switch from Linux Container to Windows containers

Check failure on line 199 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": 199, "column": 10}}}, "severity": "ERROR"}

Check failure on line 199 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": 199, "column": 97}}}, "severity": "ERROR"}
and run following command to witness the relative path of volume changes on Linux based based to Windows based path.

Check failure on line 200 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 'witness'. Raw Output: {"message": "[Vale.Terms] Use '(?-i)[A-Z]{2,}'?s' instead of 'witness'.", "location": {"path": "content/get-started/workshop/05_persisting_data.md", "range": {"start": {"line": 200, "column": 30}}}, "severity": "ERROR"}

Check failure on line 200 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": 200, "column": 66}}}, "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

```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

0 comments on commit 7ca3aae

Please sign in to comment.