Skip to content

Conversation

dfunckt
Copy link
Contributor

@dfunckt dfunckt commented May 27, 2022

Most Docker API parameters take JSON values but some array parameters must be passed as multiple querystring parameters. Two known such parameters are t and extrahosts for the /build endpoint. There may be others.

This changes Modem to behave in a similar way: encode values to JSON by default, except the known special cases.

This properly fixes apocas/dockerode#605 and #139 and effectively reverts #133 and #134.

Most Docker API parameters take JSON values but some array parameters must be passed as multiple querystring parameters. Two known such parameters are `t` and `extrahosts` for the `/build` endpoint. There may be others.

This changes Modem to behave in a similar way: encode values to JSON by default, except the known special cases.

This properly fixes apocas/dockerode#605 and apocas#139 and effectively reverts apocas#133 and apocas#134.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

How to use extrahosts propery in image build
2 participants