osrf / rocker

A tool to run docker containers with overlays and convenient options for things like GUIs etc.
Apache License 2.0
584 stars 75 forks source link

Add support for detecting and controlling the platform #207

Open tfoote opened 2 years ago

tfoote commented 2 years ago

docker supports multi-arch capabilities. Oddly it's a sticky option. If you last ran an image with one platform it will invoke future elements.

The side effecting isn't good.

It would be good to take a --platform argument and execute it . But otherwise use the system native platform.

It would probably need to detect the current default somehow to optionally override it to keep it commands repeatable.