Uploaded image for project: 'Funtoo Linux'
  1. Funtoo Linux
  2. FL-11509

[core-kit] app-emulation/docker breaks with go1.20.6, go1.19.11, or later

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical (Application) Critical (Application)
    • None
    • None
    • Hide
      1. Install dev-lang/go-1.20.6 or above
      2. Re-install app-emulation/docker to recompile it with the new Go compiler
      3. Start up any Docker container image
      4. Try to exec into it with a command like docker exec -it CONTAINER_NAME
      Show
      1. Install dev-lang/go-1.20.6 or above 2. Re-install app-emulation/docker to recompile it with the new Go compiler 3. Start up any Docker container image 4. Try to exec into it with a command like docker exec -it CONTAINER_NAME

      During some harvester testing tonight I discovered a breaking bug in our in-tree app-emulation/docker-20.10.17 on Funtoo next.

      We are now hitting this very recent upstream bug: Golang client fails to attach to streams with "http: invalid Host header" with go1.20.6, go1.19.11

      I was linked to this Issue via this one: Compiling error: http: invalid Host header

      When this bug is reproduced locally you will not be able to exec into container and will see errors like this:

       
      docker exec -it harvest /bin/bash
      http: invalid Host header
      

      The fix for this is to update to the latest Docker CLI release as of 2 weeks ago, which containers the fix, or backport the patches: https://github.com/moby/moby/releases/tag/v24.0.5

      I think this may be a great opportunity to autogen Docker CLI so we have the latest. We can use Git tags on the official GitHub repo: https://github.com/docker/cli/tags

      Due to this upstream bug, this has now become a blocker for anyone want to upgrade to Golang 1.19.11, 1.20.7, and beyond who use the Docker CLI for Linux containers.

            siris siris
            siris siris
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: