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

4.15.0/4.16.0: GET request from docker container is automatically modified to use absolute URI #13159

Open
2 of 3 tasks
elerocks opened this issue Jan 12, 2023 · 6 comments
Open
2 of 3 tasks

Comments

@elerocks
Copy link

  • I have tried with the latest version of Docker Desktop
  • I have tried disabling enabled experimental features
  • I have uploaded Diagnostics
  • Diagnostics ID:

Actual behavior

GET request coming from inside running container to outside network is translated to GET request with absolute URI.

Expected behavior

Keep the URI relative

Information

  • Windows Version: 10
  • Docker Desktop Version: 4.15.0
  • WSL2 or Hyper-V backend? WSL2
  • Are you running inside a virtualized Windows e.g. on a cloud server or a VM: No

Output of & "C:\Program Files\Docker\Docker\resources\com.docker.diagnose.exe" check

  • everything has passed

Steps to reproduce the behavior

  1. run wireshark
  2. run e.g. ubuntu 20.04 container
  3. install curl
  4. perform "curl www.google.com"
  5. observe in wireshark that GET request is: GET www.google.com
  • In previous version of docker desktop (4.14.1) it was GET /

This is causing us problems, because we are using third party devices that are unable to handle GET requests with absolute URI.

I've observed this only on windows and only using the latest docker desktop (4.15.0). Others worked fine

@elerocks
Copy link
Author

elerocks commented Jan 13, 2023

Update: the same issue is happening also with the newest Docker Desktop 4.16.0

Workaround is to disable Automatic Proxy Detection in Windows, but I'm not sure about consequences for customers that might be dependent on this setting.

@elerocks elerocks changed the title GET request from docker container is automatically modified to use absolute URI 4.15.0: GET request from docker container is automatically modified to use absolute URI Jan 13, 2023
@elerocks elerocks changed the title 4.15.0: GET request from docker container is automatically modified to use absolute URI 4.15.0/4.16.0: GET request from docker container is automatically modified to use absolute URI Jan 13, 2023
@jpvanhulst
Copy link

I'm having the same issue. Thank you for the temporary workaround.

@elerocks
Copy link
Author

elerocks commented Jan 25, 2023

Issue still present in 4.16.1 and 4.16.2.

@haydenseitz
Copy link

Glad I found this (and duplicate?)! Our fix was to downgrade to v4.12, but I'll try disable the proxy setting as suggested. Thanks for the workaround!

@elerocks
Copy link
Author

elerocks commented Mar 9, 2023

docker 4.17 partly fixes this issue, but changes the case of headers, e.g. host was changed to Host. Unfortunately this still breaks communication with the third party devices.

Workaround is still the same, disable "Automatic Proxy Detection"

@docker-robot
Copy link

docker-robot bot commented Jun 23, 2023

There hasn't been any activity on this issue for a long time.
If the problem is still relevant, mark the issue as fresh with a /remove-lifecycle stale comment.
If not, this issue will be closed in 30 days.

Prevent issues from auto-closing with a /lifecycle frozen comment.

/lifecycle stale

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

No branches or pull requests

3 participants