Skip to content
This repository was archived by the owner on Nov 7, 2022. It is now read-only.

Commit ff3e303

Browse files
authored
Updated docker commands in README (#458)
Addresses #452
1 parent bf347b3 commit ff3e303

1 file changed

Lines changed: 16 additions & 8 deletions

File tree

README.md

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -236,10 +236,14 @@ A Docker scratch image can be built with make by targeting `docker-agent`.
236236

237237
```shell
238238
$ make docker-agent
239-
$ docker run --rm -it -p 55678:55678 -p 55679:55679 \
240-
-v $(pwd)/ocagent-config.yaml:/conf/ocagent-config.yaml \
241-
--config=/conf/ocagent-config.yaml \
242-
ocagent
239+
$ docker run \
240+
--rm \
241+
--interactive \
242+
--tty \
243+
--publish 55678:55678 --publish 55679:55679 \
244+
--volume $(pwd)/ocagent-config.yaml:/conf/ocagent-config.yaml \
245+
ocagent \
246+
--config=/conf/ocagent-config.yaml
243247
```
244248

245249
## OpenCensus Collector
@@ -341,10 +345,14 @@ $ ./bin/occollector_$($GOOS)
341345
(note: additional ports may be required depending on your receiver configuration):
342346
```shell
343347
$ make docker-collector
344-
$ docker run --rm -it -p 55678:55678 -p 8888:8888 \
345-
-v $(pwd)/occollector-config.yaml:/conf/occollector-config.yaml \
346-
--config=/conf/occollector-config.yaml \
347-
occollector
348+
$ docker run \
349+
--rm \
350+
--interactive \
351+
-- tty \
352+
--publish 55678:55678 --publish 8888:8888 \
353+
--volume $(pwd)/occollector-config.yaml:/conf/occollector-config.yaml \
354+
occollector \
355+
--config=/conf/occollector-config.yaml
348356
```
349357

350358
It can be configured via command-line or config file:

0 commit comments

Comments
 (0)