docker build -t myprint-docker .
docker run -d -p 19898:19898 myprint-docker
#查看日志
docker logs $(docker ps | grep myprint-docker | awk '{print $1}')
#进入容器
docker exec -it $(docker ps | grep myprint-docker | awk '{print $1}') /bin/bash
curl --request POST \
--output out.pdf \
--url http://192.168.1.10:19898/print/generatePdf \
--header 'Accept: */*' \
--header 'Accept-Encoding: gzip, deflate, br' \
--header 'Connection: keep-alive' \
--header 'Content-Type: application/json' \
--header 'User-Agent: PostmanRuntime-ApipostRuntime/1.1.0' \
--data '{
"cmd": "print",
"content": "<div style=\" --tcolor: black;\"><div>中文sdf123 - myprint</div></div>",
"height": 297,
"width": 210
}'
# 成功会返回一个 out.pdf文件
qq群:456845432