docker run
2020-10-05 10:56 蜡笔小旧 阅读(155) 评论(0) 编辑 收藏 举报These are docker run examples for my need(run docker container that mounts the host file system without using .Dockerfile):
1. Run docker Nginx container:
docker run -d -p 88:80 -v X:\code\docker\nginx\test1:/usr/share/nginx/html:ro nginx
2. Run docker .NET Core 3.1 runtime:
docker run -p 88:80 -v xxx:/app mcr.microsoft.com/dotnet/core/runtime:3.1-buster-slim dotnet /app/MyTest.dll
NOTE: if you wanna publish again and don't create a container again, please use 'docker restart'.