I am getting the following issue when running docker-compose up
in on my machine
[+] Building 0.1s (2/2) FINISHED
=> [internal] load .dockerignore 0.1s
=> => transferring context: 2B 0.0s
=> [internal] load build definition from Dockerfile 0.1s
=> => transferring dockerfile: 119B 0.0s
failed to solve: Internal: Internal: stream terminated by RST_STREAM with error code: INTERNAL_ERROR
For some context, I am just trying to get a basic golang image up as per this tutorial
My docker-compose.yml
file looks like this
version: '3.8'
services:
app:
build: .
ports:
- "3000:3000"
volumes:
- .:/usr/src/app
My Dockerfile looks like this
FROM golang:1.19
WORKDIR /usr/src/app
File structure
pppproject
|- Dockerfile
|- docker-compose.yml
Other details about my system:
- Windows 10
- Docker version 4.19.0
- Compose: v2.17.3
- Engine: 23.0.5
What I have referred to:
- Docker build not working: rpc error (PROTOCOL_ERROR)
- I have also referred to another stack overflow thread “docker-compose, failed to solve: rpc error: code = Unknown desc = failed to compute cache key: “/app/package.json” not found: not found” (sorry I could only put 2 links)
- I have another repository with a docker-compose.yml that starts up a django and postgres container and works fine. Can’t share more about that because it’s work related.
What I have done:
- toggling buildkit on and off
- turning off other network services like Synctazor on my machine
- uninstall and reinstall docker, restart, update docker desktop