I created one AWS ECS cluster with launch type EC2. The cluster ec2 + windows based. I have to run docker image of java application inside this cluster. I created linux based docker image but it is not working in that windows cluster. I am getting below error : Status reason CannotPullContainerError: image operating system "linux" cannot be used on this platform
My docker file is :
FROM maven:3.6.1-jdk-8-alpine AS MAVEN_BUILD
COPY ./ ./
RUN mvn clean install -DskipTests
FROM openjdk:8
#VOLUME c:\Ctpl_VBA
ARG JAR_FILE=target/*.jar COPY --from=MAVEN_BUILD ${JAR_FILE} app.jar EXPOSE 8080 ENTRYPOINT ["java","-jar","/app.jar"]
Is there any way to run my java application using docker image inside AWS windows cluster?