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' option when pulling in docker_image #79

Closed
ondrejmo opened this issue Feb 2, 2021 · 2 comments · Fixed by #89
Closed

Add 'platform' option when pulling in docker_image #79

ondrejmo opened this issue Feb 2, 2021 · 2 comments · Fixed by #89

Comments

@ondrejmo
Copy link

ondrejmo commented Feb 2, 2021

SUMMARY

It would be handy it was possible to specify platform when pulling an image. Currently when pulling multiarch image that doesn't have a special tag for each architecture it automatically starts pulling the image with architecture of userspace and there's no way to override this behaviour other than using cli:

- command:  docker pull --platform=linux/arm64 minio/minio:RELEASE.2021-01-16T02-19-44Z
  • i.e. when on Raspbian with aarch64 kernel and armv7 userspace, it pulls armv7 image and fails if it doesn't exist, manual override using --platform arm64 is needed to fix it, but docker_image doesn't support platform option when pulling
ISSUE TYPE
  • Feature Idea
COMPONENT NAME

docker_image

ADDITIONAL INFORMATION
@felixfontein
Copy link
Collaborator

Should be easy to implement, as pull does support it: https://docker-py.readthedocs.io/en/stable/api.html#docker.api.image.ImageApiMixin.pull

@felixfontein
Copy link
Collaborator

resolved_by_pr #89

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 a pull request may close this issue.

2 participants