From 9d292799599cf1e1df3e94ca503ad187a34c9004 Mon Sep 17 00:00:00 2001 From: 1-h Date: Fri, 30 Aug 2024 15:36:33 +0800 Subject: [PATCH] Update README.md --- README.md | 198 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 198 insertions(+) diff --git a/README.md b/README.md index 6bb9816..7977d7b 100644 --- a/README.md +++ b/README.md @@ -3,4 +3,202 @@ docker compose create docker compose up -d sablier proxy curl http://localhost:8080/whoami; echo -e "\n等待启动完成"; sleep 3; curl http://localhost:8080/whoami; +``` + +```log +root@Airoli-Maharashtra-IN-150-230:~/_docker-stacks/sablier-example# docker compose create +[+] Creating 5/4 + ✔ Network sablier-example_default Created 0.1s + ✔ Container sablier-example-proxy-1 Created 0.1s + ✔ Container sablier-example-whoami-1 Created 0.1s + ✔ Container sablier-example-sablier-1 Created 0.1s + ! whoami The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested 0.0s +root@Airoli-Maharashtra-IN-150-230:~/_docker-stacks/sablier-example# docker compose up -d sablier proxy +[+] Running 2/2 + ✔ Container sablier-example-proxy-1 Started 0.3s + ✔ Container sablier-example-sablier-1 Started 0.3s +root@Airoli-Maharashtra-IN-150-230:~/_docker-stacks/sablier-example# curl http://localhost:8080/whoami; echo -e "\n等待启动完成"; sleep 3; curl http://localhost:8080/whoami; + + + + + + + + + Sablier + + + +
+
+
+ Starting My Whoami Service... + +
+ +
+
+ + + + +等待启动完成 +Hostname: 15dc096e1bcf +IP: 127.0.0.1 +IP: ::1 +IP: 172.20.0.4 +RemoteAddr: 172.20.0.3:39000 +GET /whoami HTTP/1.1 +Host: localhost:8080 +User-Agent: curl/7.88.1 +Accept: */* +Accept-Encoding: gzip +X-Forwarded-For: 172.20.0.1 +X-Forwarded-Host: localhost:8080 +X-Forwarded-Proto: http + +root@Airoli-Maharashtra-IN-150-230:~/_docker-stacks/sablier-example# ``` \ No newline at end of file