Skip to content

Docker fails to run containers #244159

Description

@ppom0

Describe the bug

docker fails to run containers since go has been updated to go1.20.6.

Issue is known upstream: moby/moby#45935 (concise explanation in docker/cli#4437 (comment))

Steps To Reproduce

Steps to reproduce the behavior:

  1. Update from the channel nixos-23.05-small
  2. Try a docker run alpine sh. Fails with http: invalid Host header

Expected behavior

I can run containers on my server 😭

Quickfix

While I'm waiting for a released fix on nixpkgs, how can I circumvent this? Easiest way seems to downgrade go version used to compile various docker binaries, but docker's https://github.com/nixOS/nixpkgs/blob/master/pkgs/applications/virtualization/docker/default.nix can't accept overrides as various packages are built in a let...in.

Is there an easy way to revert commit e5a213c in nixpkgs?
Or is there any easy way to fix this?

Thanks y'all!

Notify maintainers

docker: @offlinehacker @tailhook @vdemeester @periklis @mikroskeem @maxeaubrey
go: @kalbasit @Mic92 @zowoq @qbit

Metadata

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
- system: `"x86_64-linux"`
 - host os: `Linux 6.1.38, NixOS, 23.05 (Stoat), 23.05.2067.5f621193137`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.13.3`
 - channels(root): `"nixos-23.05-small, nixos-unstable"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: bugSomething is broken0.kind: regressionSomething that worked before working no longer6.topic: docker toolsOpen-source software for deploying and running of containerized applications6.topic: golangGo is a high-level general purpose programming language that is statically typed and compiled.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions