openwrt / packages

Community maintained packages for OpenWrt. Documentation for submitting pull requests is in CONTRIBUTING.md
GNU General Public License v2.0
3.95k stars 3.46k forks source link

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

Open FredyVia opened 1 year ago

FredyVia commented 1 year ago

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 commented 1 year ago

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

FredyVia commented 1 year ago

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 commented 1 year ago

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

blindFS commented 1 year ago

Same issue on my env package version:

docker - 24.0.2-1
dockerd - 24.0.2-16
anonymous-one commented 1 year ago

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 commented 1 year ago

I just tried rolling back go to https://github.com/openwrt/packages/commit/8711653f1edfca0203006eb0203f26310c864b9d 1.19.7.

Same issue :/

anonymous-one commented 1 year ago

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

cyclc77 commented 1 year ago

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

G-M0N3Y-2503 commented 1 year ago

I haven't had a chance to test this issue specifically, but updated docker to 24.0.5 here https://github.com/openwrt/packages/pull/21698

anonymous-one commented 1 year ago

@G-M0N3Y-2503

thank you.

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

anonymous-one commented 1 year ago

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

https://github.com/openwrt/packages/pull/21698

thaJeztah commented 1 year ago
cyclc77 commented 1 year ago

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 commented 1 year ago

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 https://github.com/openwrt/packages/pull/21711

cyclc77 commented 1 year ago

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 commented 1 year ago

I guess this issue can be closed now.

tiagoad commented 1 year ago

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 commented 1 year ago

docker compose was fixed through https://github.com/docker/compose/pull/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 commented 1 year ago

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 commented 1 year ago

Can I use the 24.0.5 version on Openwrt 22.03.05 ?