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

Proxy command doesn't handle websockets #31

Open
greenled opened this issue Sep 2, 2019 · 0 comments
Open

Proxy command doesn't handle websockets #31

greenled opened this issue Sep 2, 2019 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@greenled
Copy link
Owner

greenled commented Sep 2, 2019

Describe the bug
When using PSU as a proxy to an endpoint's Docker daemon, commands requiring a websocket connection (like docker attach, docker exec, docker system events) fail with an unable to upgrade to tcp, received 200 error or just hang up.

To Reproduce
Given:

  • There is a "primary" endpoint
  • There is a "backend" container running on that endpoint
  • There is a Docker client installed locally

Steps to reproduce the behavior:

  1. Run psu proxy --endpoint primary --port 12345
  2. In another shell, run export DOCKER_HOST=tcp://localhost:12345
  3. Run docker exec backend echo "hello"
  4. See error

Expected behavior
PSU should correctly proxy the request by handling the protocol upgrade

Standard/Error output

unable to upgrade to tcp, received 200

Standalone executable binary (please complete the following information):

  • OS: Linux
  • Shell interpreter: Bash
  • Portainer version: 1.21.0
  • Program version: 2.0.0-alpha.3
@greenled greenled added the bug Something isn't working label Sep 2, 2019
@greenled greenled added this to the 2.0 milestone Sep 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant