合成酿酒护目镜,美蒂诗兰,地铁旁现巨蛇
docker image build -t demo .
,构建一个demo名字的镜像。这个时候就会构建镜像,输入docker images
可以查看当刚刚生成的镜像。也可以看到下面会用到的imageiddocker run --name=demo -d -p 8000:80 -v /www/app:/app demo
docker ps
可以看到正在运行的容器的信息。docker login
然后登录。docker tag imageid hanfan/demo:1.0
推送docker push hanfan/demo:1.0
docker pull hanfan/demo:1.0
拉取运行镜像了。docker images
可以查看。写一个自己的dockerfile
from microsoft/dotnet:2.1-aspnetcore-runtime as base workdir /app copy . . run ln -s /lib/x86_64-linux-gnu/libdl-2.24.so /lib/x86_64-linux-gnu/libdl.so run echo "deb http://mirrors.aliyun.com/debian wheezy main contrib non-free deb-src http://mirrors.aliyun.com/debian wheezy main contrib non-free deb http://mirrors.aliyun.com/debian wheezy-updates main contrib non-free deb-src http://mirrors.aliyun.com/debian wheezy-updates main contrib non-free deb http://mirrors.aliyun.com/debian-security wheezy/updates main contrib non-free deb-src http://mirrors.aliyun.com/debian-security wheezy/updates main contrib non-free" > /etc/apt/sources.list expose 80 run apt-get update run apt-get install libgdiplus -y && ln -s libgdiplus.so gdiplus.dll from base as final workdir /app entrypoint ["dotnet", "xxxxx.dll"]
如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复
Blazor server side 自家的一些开源的, 实用型项目的进度之 CEF客户端
.NET IoC模式依赖反转(DIP)、控制反转(Ioc)、依赖注入(DI)
vue+.netcore可支持业务代码扩展的开发框架 VOL.Vue 2.0版本发布
网友评论