1.创建容器
docker container run -d --name=web -p 80:80 --network=test --mount type=bind,src=/root/,dst=/opt --cpus="1" --memory="100M" --memory-swap="200M" --restart=always --oom-kill-disable nginx
docker 常用命令 container
原文:https://www.cnblogs.com/caonw/p/13261327.html