Skip to content

Commit 8b45e0c

Browse files
committed
use --publish instead of -p
Signed-off-by: Simon L. <szaimen@e.mail.de>
1 parent 1246d4c commit 8b45e0c

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

readme.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ On Linux and macOS:
2121
docker run -it \
2222
--env SERVER_BRANCH=master \
2323
--name nextcloud-easy-test \
24-
-p 127.0.0.1:8443:443 \
24+
--publish 127.0.0.1:8443:443 \
2525
--volume="nextcloud_easy_test_npm_cache_volume:/var/www/.npm" \
2626
ghcr.io/szaimen/nextcloud-easy-test:latest
2727
```
@@ -33,7 +33,7 @@ ghcr.io/szaimen/nextcloud-easy-test:latest
3333
docker run -it ^
3434
--env SERVER_BRANCH=master ^
3535
--name nextcloud-easy-test ^
36-
-p 127.0.0.1:8443:443 ^
36+
--publish 127.0.0.1:8443:443 ^
3737
--volume="nextcloud_easy_test_npm_cache_volume:/var/www/.npm" ^
3838
ghcr.io/szaimen/nextcloud-easy-test:latest
3939
```
@@ -52,7 +52,7 @@ This inserts the environment variable `SERVER_BRANCH` into the container and set
5252
`--name nextcloud-easy-test`
5353
This gives the container a distinct name `nextcloud-easy-test` so that you are able to easily run other docker commands on the container.
5454
55-
`-p 127.0.0.1:8443:443`
55+
`--publish 127.0.0.1:8443:443`
5656
This makes the container listen on `localhost` and maps the host port `8443` to the container port `443` so that you are able to access the container by opening https://localhost:8443.
5757
5858
`--volume="nextcloud_easy_test_npm_cache_volume:/var/www/.npm"`
@@ -76,7 +76,7 @@ docker rm nextcloud-easy-test
7676
```
7777
7878
### Running in a VM
79-
If you want to run this in a VM, you need to change the port in the initial command from `-p 127.0.0.1:8443:443` to `-p 8443:443` and add the following flag: `--env TRUSTED_DOMAIN=ip.of.the.VM` in order to automatically make it work.
79+
If you want to run this in a VM, you need to change the port in the initial command from `--publish 127.0.0.1:8443:443` to `--publish 8443:443` and add the following flag: `--env TRUSTED_DOMAIN=ip.of.the.VM` in order to automatically make it work.
8080
8181
### Available APPS
8282
Additionally, the container currently reacts on the following apps variables and installs and compiles those automatically if provided:

0 commit comments

Comments
 (0)