简体   繁体   English

我可以在 Win10 上构建容器,然后在 Windows Server 2019 或 2022 上运行它吗?

[英]Can I build container on Win10 and next run it on Windows Server 2019 or 2022?

Can I build container on Win10 and next run it on Windows Server 2019 or 2022?我可以在 Win10 上构建容器,然后在 Windows Server 2019 或 2022 上运行它吗? Is it supported?是否支持? I cannot find any official documentation about this.我找不到任何有关此的官方文档。

Yes.是的。 Docker containers are designed to run on any platform, as long as the host can run docker (which Windows Home/Pro/Server) all can, then it should be able to run any docker container. Docker containers are designed to run on any platform, as long as the host can run docker (which Windows Home/Pro/Server) all can, then it should be able to run any docker container.

You can save and export a container you've made using the commit and save commands in docker.您可以使用 docker 中的commitsave命令保存和导出您创建的容器。

eg:例如:

docker commit <container> <repository_name>:<tag (optional)>

# This will create a new image with the repository name and tag

docker save <image_name> -o <filename>.tar

# This will output that image to a .tar file

docker load -i <filename.tar>

# This will import the saved .tar as a new image.

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 应用程序兼容直到 win10 但不能在 windows server 版本中运行 - Application compatible until win10 but not run in windows server versions Winrt应用程序可以在win10 / win2012上作为Windows服务运行吗? - Can a winrt application run as a windows service, on win10/win2012? 在 Windows KVM 实例中运行 Win10 Docker 容器时出错 - Error running Win10 Docker container in Windows KVM instance 我可以禁用Win10 S模式支持以通过Windows应用商店审查吗? - Can I disable Win10 S mode support to pass the Windows Store review? 使用WinPhone 8的库为Win10 UWP开发,可以吗? - Develop for Win10 UWP using a library for WinPhone 8, Can I? SQL Server Docker 容器可以在 Windows Server core 2022 上运行吗(“linux”不能在这个平台上使用) - Can a SQL Server Docker container run on Windows Server core 2022 ("linux" cannot be used on this platform) 无法在 windows 服务器 2019 中运行 docker 容器 - Cannot run docker container in windows server 2019 localhost web 服务器在 win10 上,没有管理员 - localhost web server on win10 with no admin 我可以在 Windows Server 2019 上运行 Adobe RoboHelp 20 吗? - Can I run Adobe RoboHelp 20 on Windows Server 2019? 有什么方法可以从Win10 Desktop控制Windows Mobile(Win10电话)吗? - Is there any way to control Windows Mobile (Win10 phone) from Win10 Desktop?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM