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

Add platform parameter for create_container() #2927

Merged
merged 5 commits into from
Jul 29, 2022
Merged

Conversation

felixfontein
Copy link
Contributor

The query parameter platform apparently was added for API version 1.41 (see https://github.com/docker/cli/blob/fe93451cf7d26fd211c4f4c2f55d32022294b628/vendor/github.com/docker/docker/client/container_create.go#L35-L42) and is used by the Docker CLI, but unfortunately is not documented in the API docs (https://docs.docker.com/engine/api/v1.41/#operation/ContainerCreate).

Fixes #2822.

Signed-off-by: Felix Fontein <felix@fontein.de>
Signed-off-by: Felix Fontein <felix@fontein.de>
Signed-off-by: Felix Fontein <felix@fontein.de>
@pinko-fowle
Copy link

This is super helpful for people on ARM & M1 mac's trying to work with non-dual architectures.

Really hoping we can get unblocked starting the containers we need on our devmachines soon! Apologies for the ping but @aiordache, @ulyssessouza, would love to see this great work move forward if we can. 🚀

@JonZeolla
Copy link

@milas any chance you could take a look at this PR?

@milas milas merged commit 1a4cacd into docker:main Jul 29, 2022
@felixfontein felixfontein deleted the platform branch July 29, 2022 19:20
@felixfontein
Copy link
Contributor Author

@JonZeolla @nicksieger @milas thanks for reviewing and merging!

@milas milas added this to the 6.0.0 milestone Jul 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Container creation does not support passing the platform
5 participants