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 setting for a default --platform parameter on docker command line #4338

Open
giallu opened this issue Jul 11, 2024 · 0 comments
Open

add setting for a default --platform parameter on docker command line #4338

giallu opened this issue Jul 11, 2024 · 0 comments
Milestone

Comments

@giallu
Copy link

giallu commented Jul 11, 2024

I work in OSX but my target platform is based on linux/amd64 so all of my images does not include the linux/arm64 variant.
For this reason I need to add "--platform=linux/amd64" to all docker commands, which is supported in settings.json but ONLY for 'docker.commands.{build,run,runInteractive}

as a result, I get this when using other commands like "pull"

Executing task: docker image pull ghcr.io/moldiscovery/centos7:latest 

latest: Pulling from moldiscovery/centos7
no matching manifest for linux/arm64/v8 in the manifest list entries

So I think "pull" should also support customizing it's command or, even better, having a global setting that applies to all commands so I can add "--platform=linux/amd64" there

@danegsta danegsta added this to the Future milestone Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants