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

Correctly exclude a few keys from being JSON encoded #144

Merged
merged 1 commit into from
Jun 3, 2022

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