# Docker Compose not working: "RST\_STREAM with error code: INTERNAL\_ERROR"

**URL:** <https://forums.docker.com/t/docker-compose-not-working-rst-stream-with-error-code-internal-error/136137>\
**Category:** Docker Desktop\
**Tags:** windows\
**Created:** [May 21, 2023, 9:08am UTC](https://forums.docker.com/t/docker-compose-not-working-rst-stream-with-error-code-internal-error/136137 "2023-05-21T09:08:53Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![smthnc87](https://avatars.discourse-cdn.com/v4/letter/s/9fc348/32.png) [@smthnc87](https://forums.docker.com/u/smthnc87)\
**Post date:** [May 21, 2023, 9:08am UTC](https://forums.docker.com/t/docker-compose-not-working-rst-stream-with-error-code-internal-error/136137/1 "2023-05-21T09:08:53Z")

</div>

I am getting the following issue when running `docker-compose up` in on my machine

```auto
[+] 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](https://www.youtube.com/watch?v=p08c0-99SyU)

My `docker-compose.yml` file looks like this

```auto
version: '3.8'

services:
  app:
    build: .
    ports:
      - "3000:3000"
    volumes:
      - .:/usr/src/app

```

My Dockerfile looks like this

```auto
FROM golang:1.19

WORKDIR /usr/src/app

```

File structure

```auto
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)](https://forums.docker.com/t/docker-build-not-working-rpc-error-protocol-error/121584)
- 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

---

<div class="post-metadata">

**Author:** ![rimelek](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/rimelek/32/41602_2.png) [@rimelek](https://forums.docker.com/u/rimelek)\
**Post date:** [May 21, 2023, 5:12pm UTC](https://forums.docker.com/t/docker-compose-not-working-rst-stream-with-error-code-internal-error/136137/2 "2023-05-21T17:12:25Z")

</div>

It seems you tried hard. I didn’t remember it, but there was another related issue before:

> [@Docker build not working: rpc error (PROTOCOL\_ERROR)](https://forums.docker.com/t/docker-build-not-working-rpc-error-protocol-error/121584/6):
>
> Hi! Same issue here. FYI, updating Docker Desktop from version 4.15.X to 4.16.1 fixes the issue and I was finally able to (re)add “node\_modules/” in my .dockerignore raised_hands.

The last user who commented could solve it by updating Docker which you tried too, but which version did you update from?

---

<div class="post-metadata">

**Author:** ![smthnc87](https://avatars.discourse-cdn.com/v4/letter/s/9fc348/32.png) [@smthnc87](https://forums.docker.com/u/smthnc87)\
**Post date:** [May 21, 2023, 11:33pm UTC](https://forums.docker.com/t/docker-compose-not-working-rst-stream-with-error-code-internal-error/136137/3 "2023-05-21T23:33:01Z")

</div>

I didn’t take note of what the previous version was, but it must be quite some time since I last update…,

However, I found a very strange workaround for the issue:

The error seems to come about when I run docker-compose from a newly clone github repository (my own repo)

_However, when I made a new directory locally instead and ran docker-compose from there, it worked and I was able to get containers built, use docker bash etc._

Have you encountered similar issues before?

---

<div class="post-metadata">

**Author:** ![rimelek](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/rimelek/32/41602_2.png) [@rimelek](https://forums.docker.com/u/rimelek)\
**Post date:** [May 22, 2023, 5:35am UTC](https://forums.docker.com/t/docker-compose-not-working-rst-stream-with-error-code-internal-error/136137/4 "2023-05-22T05:35:01Z")

</div>

> [@smthnc87](#):
>
> The error seems to come about when I run docker-compose from a newly clone github repository (my own repo)

No, but I rarely use Docker on Windows. So the error happens only when you build a specific image or could you build the same content by creating everything locally instead of cloning from the repo?

---

<div class="post-metadata">

**Author:** ![smthnc87](https://avatars.discourse-cdn.com/v4/letter/s/9fc348/32.png) [@smthnc87](https://forums.docker.com/u/smthnc87)\
**Post date:** [May 24, 2023, 12:30pm UTC](https://forums.docker.com/t/docker-compose-not-working-rst-stream-with-error-code-internal-error/136137/5 "2023-05-24T12:30:24Z")

</div>

I was able to build the same content by creating everything locally

---

<div class="post-metadata">

**Author:** ![rimelek](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/rimelek/32/41602_2.png) [@rimelek](https://forums.docker.com/u/rimelek)\
**Post date:** [May 25, 2023, 6:40am UTC](https://forums.docker.com/t/docker-compose-not-working-rst-stream-with-error-code-internal-error/136137/6 "2023-05-25T06:40:11Z")

</div>

Then my guess is that your Git client on Windows changes line endings when you clone the project. Git Bash let’s you turn this behaviour off when you install it. I don’t know why line endings would cause the error you had, but chaning line endings automatically can definitely cause problems.

---

<div class="post-metadata">

**Author:** ![smthnc87](https://avatars.discourse-cdn.com/v4/letter/s/9fc348/32.png) [@smthnc87](https://forums.docker.com/u/smthnc87)\
**Post date:** [May 26, 2023, 1:32pm UTC](https://forums.docker.com/t/docker-compose-not-working-rst-stream-with-error-code-internal-error/136137/7 "2023-05-26T13:32:52Z")

</div>

Thank you for bringing this up! Never knew of such a thing and I will have to look into this further

---

<div class="post-metadata">

**Author:** ![alexandrpopkov](https://avatars.discourse-cdn.com/v4/letter/a/dc4da7/32.png) [@alexandrpopkov](https://forums.docker.com/u/alexandrpopkov)\
**Post date:** [June 6, 2023, 7:30pm UTC](https://forums.docker.com/t/docker-compose-not-working-rst-stream-with-error-code-internal-error/136137/8 "2023-06-06T19:30:09Z")

</div>

@rimelek clone from git bush really worked for me, thanks a lot! Will be greate to add that info into guide page for windows section [Containerize an application | Docker Documentation](https://docs.docker.com/get-started/02_our_app/)

---

<div class="post-metadata">

**Author:** ![michamigacev](https://avatars.discourse-cdn.com/v4/letter/m/a88e4f/32.png) [@michamigacev](https://forums.docker.com/u/michamigacev)\
**Post date:** [October 21, 2023, 11:30pm UTC](https://forums.docker.com/t/docker-compose-not-working-rst-stream-with-error-code-internal-error/136137/9 "2023-10-21T23:30:21Z")

</div>

I had a similar problem. For me changing the file encoding, to UTF-8 solved the issue. In VS Code there is the metadata in the bottom right corner. There you can go on the encoding method and change it to UTF-8 (do “Save with Encoding” and not the other one). I hope it helps someone, as it took years of my life.

---

<div class="post-metadata">

**Author:** ![matheusfps](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/matheusfps/32/54364_2.png) [@matheusfps](https://forums.docker.com/u/matheusfps)\
**Post date:** [December 17, 2024, 11:12pm UTC](https://forums.docker.com/t/docker-compose-not-working-rst-stream-with-error-code-internal-error/136137/10 "2024-12-17T23:12:10Z")

</div>

Thank you a lot, dude, you were a life saver. I was dealing with this problem for a long time.
