是否可以在 VSTS 2017 托管代理上构建 Linux docker 图像?
Is it possible to build a Linux docker image on VSTS 2017 Hosted agent?
我有一个从 microsoft/dotnet:2.0-runtime
的基础镜像中提取的 Dockerfile。当我在本地构建时(在 windows 运行ning Linux 容器上)我得到一个 Linux docker 图像。
但是,如果我们 运行 使用 2017 托管代理在 VSTS 上进行相同的构建过程,那么我们会得到一个 windows docker 图像。
是否可以在 VSTS 2017 托管代理上构建 Linux docker 图像而无需使用 Linux 构建代理?
不,无法使用 VSTS 托管 VS2017 代理构建 Linux docker 图像。托管 VS2017 代理只能构建 Windows docker 个图像。
构建 Linux docker 图像的解决方法如下:
- 使用托管构建 Linux 预览代理
- 用 private agent 用你自己的 windows 机器构建
我有一个从 microsoft/dotnet:2.0-runtime
的基础镜像中提取的 Dockerfile。当我在本地构建时(在 windows 运行ning Linux 容器上)我得到一个 Linux docker 图像。
但是,如果我们 运行 使用 2017 托管代理在 VSTS 上进行相同的构建过程,那么我们会得到一个 windows docker 图像。
是否可以在 VSTS 2017 托管代理上构建 Linux docker 图像而无需使用 Linux 构建代理?
不,无法使用 VSTS 托管 VS2017 代理构建 Linux docker 图像。托管 VS2017 代理只能构建 Windows docker 个图像。
构建 Linux docker 图像的解决方法如下:
- 使用托管构建 Linux 预览代理
- 用 private agent 用你自己的 windows 机器构建