upserve / docker-api

A lightweight Ruby client for the Docker Remote API
MIT License
1.09k stars 289 forks source link

The default connection type should be application/x-tar #567

Closed trevor-vaughan closed 3 years ago

trevor-vaughan commented 3 years ago

I was trying to use this gem with podman and it indicated that the input should be application/x-tar instead of application/json.

I referenced the Docker API and it looks like it always expects application/x-tar. when I made the change, everything appeared to work correctly.

https://github.com/swipely/docker-api/blob/1e9b9cc5f0f38dcd54c18189812328bb802d3656/lib/docker/connection.rb#L79

trevor-vaughan commented 3 years ago

Never mind, this is apparently based on message type.