Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker: error of docker exec -it ,return http: invalid Host header #21667

Open
FredyVia opened this issue Jul 26, 2023 · 20 comments
Open

docker: error of docker exec -it ,return http: invalid Host header #21667

FredyVia opened this issue Jul 26, 2023 · 20 comments

Comments

@FredyVia
Copy link

FredyVia commented Jul 26, 2023

Maintainer: Gerard Ryan G.M0N3Y.2503@gmail.com
Environment:
arch: aarch64
model: raspberrypi 4 B
OpenWrt version: 22.03.4
package version:

docker - 20.10.22-1
docker-compose - 2.15.1-1
dockerd - 20.10.22-1

Description:
command

docker exec -it <container-hash> sh

returns http: invalid Host header

@brada4
Copy link

brada4 commented Jul 28, 2023

What triggered the breakage? Has it worked before what change?

@FredyVia
Copy link
Author

to reproduce this error, just run

opkg update && opkg install dockerd docker
docker run -itd --name busybox-test busybox
docker exec -it busybox-test sh

I also tried virtualbox x86_64 version, problem also exist

@FredyVia
Copy link
Author

FredyVia commented Jul 29, 2023

The error seems to be caused by version of go, reference docker cli issue and moby issue

@blindFS
Copy link

blindFS commented Aug 1, 2023

Same issue on my env
package version:

docker - 24.0.2-1
dockerd - 24.0.2-16

@anonymous-one
Copy link

anonymous-one commented Aug 1, 2023

I just ran into this. I tried downgrading to docker 23 as per the commit that bumped it up to 24, basically just reversed it.

Same issue. Going to look at if go is a separate dep.

@anonymous-one
Copy link

I just tried rolling back go to 8711653 1.19.7.

Same issue :/

@anonymous-one
Copy link

@G-M0N3Y-2503 Could we kindly get docker bumped up to 24.0.5... Looks like this has been fixed.

@cyclc77
Copy link

cyclc77 commented Aug 1, 2023

docker-cil
moby
dockerd 24.05已经修复,openwrt-23.05是否同步更新

@G-M0N3Y-2503
Copy link
Contributor

I haven't had a chance to test this issue specifically, but updated docker to 24.0.5 here #21698

@anonymous-one
Copy link

@G-M0N3Y-2503

thank you.

ill spin this up tonight and let you know in here.

@anonymous-one
Copy link

The bump up to 24.0.5 worked. This issue is now fixed:

#21698

@thaJeztah
Copy link

@cyclc77
Copy link

cyclc77 commented Aug 3, 2023

I haven't had a chance to test this issue specifically, but updated docker to 24.0.5 here #21698

The docker for openwrt-23.05 is still 24.2. I hope to update it as well. thanks

@G-M0N3Y-2503
Copy link
Contributor

I haven't had a chance to test this issue specifically, but updated docker to 24.0.5 here #21698

The docker for openwrt-23.05 is still 24.2. I hope to update it as well. thanks

I was just waiting for master to cherry pick the correct sha's, the backport PR is here #21711

@cyclc77
Copy link

cyclc77 commented Aug 4, 2023

I haven't had a chance to test this issue specifically, but updated docker to 24.0.5 here #21698

The docker for openwrt-23.05 is still 24.2. I hope to update it as well. thanks

I was just waiting for master to cherry pick the correct sha's, the backport PR is here #21711

thank you.

@1715173329
Copy link
Member

I guess this issue can be closed now.

@tiagoad
Copy link

tiagoad commented Aug 21, 2023

docker-compose is still broken. work around:

  1. download the the latest docker-compose-linux-aarch64 from https://github.com/docker/compose/releases
  2. chmod +x docker-compose-linux-aarch64
  3. mv docker-compose-linux-aarch64 docker-compose /usr/lib/docker/cli-plugins/docker-compose

@thaJeztah
Copy link

docker compose was fixed through docker/compose#10827, which is part of docker compose v2.20.1 and up. deb/rpm Packages are available in the package repository at https://download.docker.com, but if you're building from source you need to build from v2.20.1 or higher (I'd recommend the latest v2.20.x version, as there were some more patch releases of compose)

@G-M0N3Y-2503
Copy link
Contributor

docker-compose is still broken. work around:

  1. download the the latest docker-compose-linux-aarch64 from https://github.com/docker/compose/releases
  2. chmod +x docker-compose-linux-aarch64
  3. mv docker-compose-linux-aarch64 docker-compose /usr/lib/docker/cli-plugins/docker-compose

BTW docker-compose has a different maintainer so it might be best to get their attention in the future or creating a seperate issue for it.
It looks like he has updated to v2.20.3 recently so it sounds like it won't be an issue anymore.

@tuapuikia
Copy link

Can I use the 24.0.5 version on Openwrt 22.03.05 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants