![](/img/trans.png)
[英]Application compatible until win10 but not run in windows server versions
[英]Can I build container on Win10 and next run it on Windows Server 2019 or 2022?
我可以在 Win10 上构建容器,然后在 Windows Server 2019 或 2022 上运行它吗? 是否支持? 我找不到任何有关此的官方文档。
是的。 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 中的commit
和save
命令保存和导出您创建的容器。
例如:
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.