docker run -it --rm -v /var/run/docker.sock:/var/run/docker.sock centos:7.6.1810
curl -s --unix-socket /var/run/docker.sock http://localhost/containers/json
docker service create -p 8080 --name=tomcat --mount type=bind,source=/var/run/docker.sock,target=/var/run/docker.sock,readonly tomcat:8.5.41
curl -s --unix-socket /var/run/docker.sock http://localhost/services
在java程序中可使用《java執行系統命令, 返回執行結果》一文中的工具類獲取接口返回html
https://portainer.readthedocs.io/en/latest/deployment.htmljava