Since updating to Golang 1.20.6, the moby Golang client starts failing with http: invalid Host header
errors when used against the default unix socket at least. Normal container operations seem to be fine, but ContainerAttach
and ContainerExecAttach
fail in particular.
I'm assuming this is related to Golang backporting Host header sanitization into 1.20 via golang/go#61076.
ReproduceCreate a container with the Golang client and try to attach to its streams. I can try to cook up a minimal code example if necessary.
Expected behaviorNo response
docker versiongithub.com/docker/docker v24.0.4+incompatibledocker info
Server: Server Version: 23.0.4Additional Info
No response
FlerioEU, amacfie-tc, teutat3s, felipelalli, very-doge-wow and 3 morefelipelalli and CorrectRoadHdsimansk and miguel-teixeira-kr
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4