docker run -d \
-p 8888:8888 \
--tmpfs /tmp \
--name spboot zimug/docker-test:1
-v /root/nginx/html:/usr/share/nginx/html/
docker run -d --name bind-mount-nginx \
-p 80:80 \
--mount type=bind,source=/root/nginx/html,target=/usr/share/nginx/html/,readonly \
nginx:latest
<!DOCTYPE html>
<html>
<body>
<h1>Bind mounts</h1>
</body>
</html>
--mount type=bind,source=/root/nginx/html,target=/usr/share/nginx/html/,readonly
欢迎光临 黑帽联盟 (https://bbs.cnblackhat.com/) | Powered by Discuz! X2.5 |