Skip to content

Commit f35807e

Browse files
committed
install-by-docker: fix curl command for Windows compatibility
Signed-off-by: Shizuo Fujita <fujita@clear-code.com>
1 parent 68ebebc commit f35807e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

container-deployment/install-by-docker.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,11 @@ $ docker run -p 9880:9880 -v $(pwd)/tmp:/fluentd/etc fluent/fluentd:edge-debian
7575
Use `curl` command to post sample logs via HTTP like this:
7676

7777
```text
78-
$ curl -X POST -d 'json={"json":"message"}' http://127.0.0.1:9880/sample.test
78+
$ curl -X POST -d "json={\"json\":\"message\"}" http://127.0.0.1:9880/sample.test
7979
```
8080

81+
(Note: For Windows users, it is recommended to run this command in Command Prompt (cmd.exe). If using PowerShell, the JSON string may require different escaping rules to be parsed correctly.)
82+
8183
Use `docker ps` command to retrieve container ID and use `docker logs` command to check the specific container's log like this:
8284

8385
```text

0 commit comments

Comments
 (0)