启动服务

docker run -d --name=echo-server \
--restart=always \
-p 10001:80 \
ealen/echo-server


请求返回

{
"host": {
"hostname": "opsbase.cn",
"ip": "::ffff:39.170.1.1",
"ips": []
},
"http": {
"method": "GET",
"baseUrl": "",
"originalUrl": "/",
"protocol": "http"
},
"request": {
"params": {
"0": "/"
},
"query": {},
"cookies": {
"firstVisit": "1641597346386",
"csrftoken": "j7LJX56shtqW4yV7BMuHulszHkBjTeP44L8m0NrAf80boIJwzYIneViF5s09uJRp",
"sessionid": "egxl0d1aoos194y3xchbx5944ikp39bx"
},
"body": {},
"headers": {
"host": "opsbase.cn:10001",
"connection": "keep-alive",
"cache-control": "max-age=0",
"upgrade-insecure-requests": "1",
"user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36",
"accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9",
"accept-encoding": "gzip, deflate",
"accept-language": "zh-CN,zh;q=0.9,en;q=0.8,ja;q=0.7",
"cookie": "firstVisit=1641597346386; csrftoken=j7LJX56shtqW4yV7BMuHulszHkBjTeP44L8m0NrAf80boIJwzYIneViF5s09uJRp; sessionid=egxl0d1aoos194y3xchbx5944ikp39bx",
"if-none-match": "W/\"4c1-qAEm+sx1clmSdkLkVNVd5BVojpU\""
}
},
"environment": {
"PATH": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"HOSTNAME": "848d1d5a7ab0",
"NODE_VERSION": "14.17.1",
"YARN_VERSION": "1.22.5",
"HOME": "/root"
}
}