You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@stephen-turner Thanks for letting me know, but this feature allowed me to run both Windows and Linux containers without having to swap between modes. I.e. my Docker Desktop daemon was always in Windows containers mode, but this --platfrom linux swich allowed me to run Linux containers regardless. Will this still be possible somehow?
We don't have a solution for that right now, but we are aware of the use case and we do have a roadmap item at docker/roadmap#79 that you can vote for.
Unfortunately LCOW (which was contributed by external developers, not our own employees) never reached a level of quality we were happy with, which is why it never graduated from experimental, and we haven't built another solution yet.
(no because I need the experimental feature to use
--platform linux
)Actual behavior
docker run --platform linux ...
always exits with exit code -1, even if the process it ran inside the container exited successfully.Expected behavior
If the process in the container exits successfully, I expect docker run to exit successfully as well.
Information
Steps to reproduce the behavior
docker run --rm hello-world
echo $LastExitCode
. This will print0
.docker run --rm --platform linux hello-world
echo $LastExitCode
. This will print-1
.docker run --rm --platform linux hello-world
echo $LastExitCode
. This will print0
again.The text was updated successfully, but these errors were encountered: