简体   繁体   中英

Issue in creating Angular Docker Image with VSTS Pipeline

I am creating a VSTS pipeline for creating a Docker Image for Angular Application. I am using Agent pool as "Hosted Windows Container". I am getting the below error:

Step 1/5 : FROM nginx:alpine alpine: Pulling from library/nginx no matching manifest for unknown in the manifest list entries [error]C:\\Program Files\\Docker\\docker.exe failed with return code: 1

I have tried with below dockerfile entries:

  1. FROM nginx COPY ./dist /usr/share/nginx/html EXPOSE 80 443

  2. FROM node:8-alpine as builder RUN apk update && apk add --no-cache make git

With both of them, I am getting same issues. I am suspecting it to be agent pool I have selected. Can someone confirm and what do I need to do to get this working in a Windows Container?

The issue was with the container image. Using the proper images node: stefanscherer/node-windows, for nginx: e2eteam/nginx:1.15-alpine-180 as mentioned by @Shayki Abramczyk fixed the issue!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM