docker run

These are docker run examples for my need:

 

1. Run docker Nginx container that mounts the host file system without using .Dockerfile

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, if you wanna publish again and don't create a container again,  please use 'docker restart'.

docker run -p 88:80 -v xxx:/app mcr.microsoft.com/dotnet/core/runtime:3.1-buster-slim dotnet /app/MyTest.dll

  

上一篇:实验一 软件开发文档与工具的安装与使用


下一篇:XML 学习介绍 收藏