我正在尝试使用 docker 构建新映像,但是当我输入构建命令时:
docker image build -t vue-app .
我收到此错误:
[+] Building 0.2s (2/2) FINISHED
=> [internal] load build definition from Dockerfile 0.1s
=> => transferring dockerfile: 229B 0.0s
=> [internal] load .dockerignore 0.2s
=> => transferring context: 67B 0.0s
ERROR: failed to solve: Internal: Internal: stream terminated by RST_STREAM with error code: INTERNAL_ERROR
我的 Dockerfile 也是
FROM node:latest
WORKDIR /app
COPY . .
RUN npm install
CMD ["npm", "run", "dev"]
如果您能帮助我,我将不胜感激。
我尝试过:
- 重新启动我的机器;
- 创建 .dockerignore 文件;
- 更改端口;