我在Windows上创建了一些docker映像,当我尝试在Raspbian上运行它们(有或没有docker-compose)时,出现标题中描述的错误。它们可以在Windows上完美运行,但在Linux上却无法运行。我是docker的新手。我查找了错误,但没有找到任何帮助。感谢您的回答。
Dockerfiles
FROM openjdk:8-jdk-alpine
COPY *.jar app.jar
CMD ["java","-jar","/app.jar"]
FROM node:12.7-alpine
COPY package.json ./
COPY package-lock.json ./
RUN npm install
RUN npm install react-scripts@3.4.0 -g
COPY . .
CMD ["npm", "start"]
FROM postgres
COPY sql ./docker-entrypoint-initdb.d
ENV POSTGRES_DB {db}
ENV POSTGRES_USER {user}
ENV POSTGRES_PASSWORD {pwd}
docker-compose.yml
version: '3'
services:
database:
image: {database-image}
ports:
- 5432:5432
service:
image: {service-image}
ports:
- 8080:8080
depends_on:
- database
web:
image: {web-image}
ports:
- 3000:3000
stdin_open: true