Skip to content

Commit c76a68f

Browse files
committed
Remove port mapping in krakend help command
Signed-off-by: Albert Lombarte <[email protected]>
1 parent 48d86a5 commit c76a68f

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

krakend/content.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,10 @@ To use the image, `COPY` your `krakend.json` file inside the container or mount
1919
You can start an empty gateway with a health check with the following commands:
2020

2121
```console
22-
$ echo '{ "version": 3 }' > krakend.json
2322
$ docker run -d -p 8080:8080 -v "$PWD:/etc/krakend/" %%IMAGE%%
2423
...
2524
$ curl http://localhost:8080/__health
26-
{"agents":{},"now":"2022-11-25 14:35:55.552591448 +0000 UTC m=+26.856583003","status":"ok"}
25+
{"agents":{},"now":"2024-05-23 14:35:55.552591448 +0000 UTC m=+26.856583003","status":"ok"}
2726
```
2827

2928
### More Examples
@@ -43,11 +42,11 @@ This flag is **SAFE to use in production**. It's meant to enable KrakenD as a fa
4342
See the [check command](https://www.krakend.io/docs/commands/check/)
4443

4544
```console
46-
docker run -it -p 8080:8080 -v $PWD:/etc/krakend/ %%IMAGE%% check --config krakend.json
45+
docker run -it -v $PWD:/etc/krakend/ %%IMAGE%% check --config krakend.json
4746
```
4847
#### Show the help:
4948

50-
docker run -it -p 8080:8080 -v $PWD:/etc/krakend/ %%IMAGE%% help
49+
docker run -it %%IMAGE%% help
5150

5251

5352
### Building your custom KrakenD image
@@ -140,5 +139,5 @@ All `krakend` commands are executed as `krakend` user (uid=1000) through `su-exe
140139

141140
You can directly use sub-commands of `krakend` like `run`, `help`, `version`, `check`, `check-plugin` or `validate` as the entrypoint will add the `krakend` command automatically. For example, the following lines are equivalent:
142141

143-
docker run -it -p 8080:8080 -v $PWD:/etc/krakend/ %%IMAGE%% help
144-
docker run -it -p 8080:8080 -v $PWD:/etc/krakend/ %%IMAGE%% krakend help
142+
docker run -it %%IMAGE%% help
143+
docker run -it %%IMAGE%% krakend help

0 commit comments

Comments
 (0)