[GH-ISSUE #356] Post request to docker fails on MacOS when running act #250

Closed
opened 2026-03-01 21:41:47 +03:00 by kerem · 7 comments
Owner

Originally created by @TobiasBales on GitHub (Sep 4, 2020).
Original GitHub issue: https://github.com/nektos/act/issues/356

When running act locally (on MacOS) it fails with
Error: error during connect: Post "http://%2Fvar%2Frun%2Fdocker.sock/v1.40/exec/437a957d8d3282446d525413a4d96d853c726094c78147e21e25b7cbcf63412f/start": net/http: HTTP/1.x transport connection broken: unsupported transfer encoding: "identity"
when running act (tried it in multiple projects with different workflow files)

I am not certain if an update to docker, act or something else broke it.
I am experiencing this on two macs now. And one of them it used to work until recently (the old one is a new setup)

Has anyone else experienced this?

Docker version: Docker version 19.03.12, build 48a66213fe
Act version: act version 0.2.10
MacOS versions: 10.14.6 and 10.15.6

Originally created by @TobiasBales on GitHub (Sep 4, 2020). Original GitHub issue: https://github.com/nektos/act/issues/356 When running act locally (on MacOS) it fails with `Error: error during connect: Post "http://%2Fvar%2Frun%2Fdocker.sock/v1.40/exec/437a957d8d3282446d525413a4d96d853c726094c78147e21e25b7cbcf63412f/start": net/http: HTTP/1.x transport connection broken: unsupported transfer encoding: "identity"` when running `act` (tried it in multiple projects with different workflow files) I am not certain if an update to docker, act or something else broke it. I am experiencing this on two macs now. And one of them it used to work until recently (the old one is a new setup) Has anyone else experienced this? Docker version: `Docker version 19.03.12, build 48a66213fe` Act version: `act version 0.2.10` MacOS versions: `10.14.6` and `10.15.6`
kerem 2026-03-01 21:41:47 +03:00
  • closed this issue
  • added the
    stale
    label
Author
Owner

@chrispblink commented on GitHub (Sep 4, 2020):

This appears to be caused by this issue:

TL;DR docker for mac tries to use "identity" transfer encording while golang 1.15 has dropped support for it

<!-- gh-comment-id:687308388 --> @chrispblink commented on GitHub (Sep 4, 2020): This appears to be caused by this issue: * https://github.com/docker/for-mac/issues/4855 TL;DR docker for mac tries to use "identity" transfer encording while [golang 1.15 has dropped support for it](https://golang.org/doc/go1.15#net/http)
Author
Owner

@donn commented on GitHub (Sep 30, 2020):

For visibility, a fix for this is to install the Edge version of Docker Desktop for macOS: https://docs.docker.com/docker-for-mac/edge-release-notes/#docker-desktop-community-2370

I think whenever this makes it to stable this issue can be closed.

<!-- gh-comment-id:701128472 --> @donn commented on GitHub (Sep 30, 2020): For visibility, a fix for this is to install the Edge version of Docker Desktop for macOS: https://docs.docker.com/docker-for-mac/edge-release-notes/#docker-desktop-community-2370 I think whenever this makes it to stable this issue can be closed.
Author
Owner

@GavinF17 commented on GitHub (Oct 6, 2020):

For visibility, a fix for this is to install the Edge version of Docker Desktop for macOS: https://docs.docker.com/docker-for-mac/edge-release-notes/#docker-desktop-community-2370

I think whenever this makes it to stable this issue can be closed.

Found this thread after having the issue, fix is in stable and it is now working for me so this could be closed

<!-- gh-comment-id:704454078 --> @GavinF17 commented on GitHub (Oct 6, 2020): > For visibility, a fix for this is to install the Edge version of Docker Desktop for macOS: https://docs.docker.com/docker-for-mac/edge-release-notes/#docker-desktop-community-2370 > > I think whenever this makes it to stable this issue can be closed. Found this thread after having the issue, fix is in stable and it is now working for me so this could be closed
Author
Owner

@TheCleric commented on GitHub (Oct 6, 2020):

Can confirm. Ran into this issue this morning, upgraded to Docker Desktop 2.4 Mac Stable, and that issue is now gone.

<!-- gh-comment-id:704484619 --> @TheCleric commented on GitHub (Oct 6, 2020): Can confirm. Ran into this issue this morning, upgraded to Docker Desktop 2.4 Mac Stable, and that issue is now gone.
Author
Owner

@derekpierre commented on GitHub (Oct 22, 2020):

Confirmed as well - issue can be closed.

<!-- gh-comment-id:714552264 --> @derekpierre commented on GitHub (Oct 22, 2020): Confirmed as well - issue can be closed.
Author
Owner

@jsteenri commented on GitHub (Nov 30, 2020):

For anyone else who finds their way here (perhaps from #377, which was not MacOS specific), this issue happened to me on using Docker Desktop on Windows with WSL2 (Ubuntu 20.04) as well.

Can confirm that upgrading Docker Desktop to the Edge version 2.5.3 #50261 (from Stable 2.3.0.4 #46911) fixed the issue.

<!-- gh-comment-id:735885143 --> @jsteenri commented on GitHub (Nov 30, 2020): For anyone else who finds their way here (perhaps from #377, which was not MacOS specific), this issue happened to me on using Docker Desktop on Windows with WSL2 (Ubuntu 20.04) as well. Can confirm that upgrading Docker Desktop to the Edge version 2.5.3 #50261 (from Stable 2.3.0.4 #46911) fixed the issue.
Author
Owner

@github-actions[bot] commented on GitHub (Jan 16, 2021):

Issue is stale and will be closed in 14 days unless there is new activity

<!-- gh-comment-id:761279596 --> @github-actions[bot] commented on GitHub (Jan 16, 2021): Issue is stale and will be closed in 14 days unless there is new activity
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/act#250
No description provided.