Skip to content

Commit 78f0e93

Browse files
committed
EN, CZ : docker : container naming, extended command for resource quotas
1 parent 3297db0 commit 78f0e93

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

cs/docker.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,23 @@ Další oddíly pokračují s Podman.
1717

1818
## Rychlé spuštění
1919
```bash
20-
podman run -p 8000:80 helpviewer
20+
podman run --name helpviewer1 -p 8000:80 helpviewer
2121
```
2222

2323
- Ke kontejneru přistoupíte z prohlížeče přes localhost:8000.
2424

2525
## Spuštění s vlastními soubory nápovědy
2626
```bash
27-
podman run -v "./my/help/files:/www/hlp:ro" -p 8000:80 helpviewer
27+
podman run --name helpviewer1 -v "./my/help/files:/www/hlp:ro" -p 8000:80 helpviewer
2828
```
2929

3030
- Ke kontejneru přistoupíte z prohlížeče přes localhost:8000.
3131
- hlp/Help-{jazyk prostředí}.zip bude použit jako první soubor automaticky
3232
- Soubor bude načten z ./my/help/files/Help-{jazyk prostředí}.zip na disku fyzického serveru kde Podman běží
3333

34+
## Spuštění s určením přídělu prostředků
35+
```bash
36+
podman run --name helpviewer1 -v "./my/help/files:/www/hlp:ro" -p 8000:80 --read-only --memory=192m --cpus=0.5 --restart=always helpviewer
37+
```
38+
3439
[target]: https://github.com/HelpViewer/HelpViewer/pkgs/container/helpviewer "Container images"

en/docker.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,23 @@ Next chapters will continue with Podman.
1717

1818
## Quick run
1919
```bash
20-
podman run -p 8000:80 helpviewer
20+
podman run --name helpviewer1 -p 8000:80 helpviewer
2121
```
2222

2323
- You will see new container data from browser on localhost:8000.
2424

2525
## Run with injected help files
2626
```bash
27-
podman run -v "./my/help/files:/www/hlp:ro" -p 8000:80 helpviewer
27+
podman run --name helpviewer1 -v "./my/help/files:/www/hlp:ro" -p 8000:80 helpviewer
2828
```
2929

3030
- You will see new container data from browser on localhost:8000.
3131
- hlp/Help-{current viewer language}.zip will be 1st file used by viewer automatically
3232
- This file will be read from ./my/help/files/Help-{current viewer language}.zip on your physical server disc
3333

34+
## Run with resource quota
35+
```bash
36+
podman run --name helpviewer1 -v "./my/help/files:/www/hlp:ro" -p 8000:80 --read-only --memory=192m --cpus=0.5 --restart=always helpviewer
37+
```
38+
3439
[target]: https://github.com/HelpViewer/HelpViewer/pkgs/container/helpviewer "Container images"

0 commit comments

Comments
 (0)