You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is likely happening because docker is sending the response header first...
Note that I cannot repro this with curl, only with piping to nc as you have here.
Also the CLI uses the same exact API.
I think this is an 'nc' issue. Try: ... nc -q -1 -U /var/run/docker.sock (note the "-q -1").
I believe 'nc' is closing the http request before the server does its job and as a result we stop the 'stats' processing. If you try other docker cmds that don't check the http request you should see that it works.
Gonna close this because its not really a docker issue as much as an nc issue. Can you use curl instead?
Hello, I have a problem with the Docker API, but first:
I am using the API with command line, and when I want to get a container's stats, the API returns nothing:
With the "docker" command I can get the stats, but I really need to use the API:
However the API is working...
What am I doing wrong please? Thank you!
The text was updated successfully, but these errors were encountered: