加入收藏

玖零一族的博客

.netcore离线上传docker镜像并运行

763 0 分类:服务器相关 | 来源:未知 | 时间:2022-07-25 13:14

1. 使用xshell连接服务器

2. 打包成镜像,docker build -f .\WebApplication2\Dockerfile -t webapplication2 .

3. 使用docker save命令将镜像打包成tar包,docker save -o xxx.tar imagename:tag

4. 使用xshell并安装flashfxp将tar压缩包上传至服务器

5. 使用docker load 命令将tar包转为镜像,docker load < xxx.tar

6. 使用docker run 运行镜像,docker run --name webapplication2-test -d -p 5000:5000 webapplication2

上一篇: VS2013无法使用Nuget的解决方法 下一篇:windows手动安装mysql5.7.32

图文推荐

相关阅读