Docker Service启动时挂载docker命令

docker service create --name tomcat -p 8080 \
--mount type=bind,src=/usr/bin/docker,dst=/usr/bin/docker,readonly \
--mount type=bind,src=/var/run/docker.sock,dst=/var/run/docker.sock,readonly \
--mount type=bind,src=/usr/lib64/libltdl.so.71,dst=/usr/lib64/libltdl.so.71,readonly \
develop-harbor.geostar.com.cn/base/apache-tomcat:8.5.51-8u231

 

posted @ 2020-04-24 12:13  Nihaorz  阅读(1380)  评论(0编辑  收藏  举报