This repository was archived by the owner on Nov 7, 2022. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
350358It can be configured via command-line or config file :
You can’t perform that action at this time.
0 commit comments