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



我可以在Win10上构建容器,然后在Windows Server 2019或2022上运行它吗?是否支持?我找不到任何有关这方面的官方文件。

是。Docker容器被设计为在任何平台上运行,只要主机可以运行Docker(Windows Home/Pro/Server都可以(,那么它就应该能够运行任何Docker容器。

您可以使用docker中的commitsave命令保存和导出您制作的容器。

例如:

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.

相关内容

最新更新