docker run -d
--name web
# -v /src/webapp:/opt/webapp
--mount type=bind,source=/src/webapp,target=/opt/webapp
training/webapp
python app.py
docker run -d
--name web
# -v /src/webapp:/opt/webapp
--mount type=bind,source=/src/webapp,target=/opt/webapp
training/webapp
python app.py
本文标题:在 docker 容器中挂载主机目录
本文链接:https://www.haomeiwen.com/subject/mmomuhtx.html
网友评论