[英]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 中的
commit
和save
命令保存和导出您创建的容器。
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.