We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Windows of Docker may be set up to use Windows containers. The --platform=linux switch can be applied to docker pull and docker run commands.
--platform=linux
docker pull
docker run
You can check the type of container by running: docker inspect --format '{{.Os}}' CONTAINER_NAME (returns linux ?or windows ?)
docker inspect --format '{{.Os}}' CONTAINER_NAME
Also:
docker inspect --format '{{.Architecture}}' CONTAINER_NAME docker inspect --format '{{.Env}}' CONTAINER_NAME docker inspect --format '{{.Config.Env}}' CONTAINER_NAME docker inspect --format '{{.Config.ExposedPorts}}' CONTAINER_NAME docker inspect --format '{{.Config.Volumes}}' CONTAINER_NAME
docker inspect --format '{{.Architecture}}' CONTAINER_NAME
docker inspect --format '{{.Env}}' CONTAINER_NAME
docker inspect --format '{{.Config.Env}}' CONTAINER_NAME
docker inspect --format '{{.Config.ExposedPorts}}' CONTAINER_NAME
docker inspect --format '{{.Config.Volumes}}' CONTAINER_NAME
https://devblogs.microsoft.com/premier-developer/running-docker-windows-and-linux-containers-simultaneously/
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Windows of Docker may be set up to use Windows containers. The
--platform=linux
switch can be applied todocker pull
anddocker run
commands.You can check the type of container by running:
docker inspect --format '{{.Os}}' CONTAINER_NAME
(returns linux ?or windows ?)
Also:
docker inspect --format '{{.Architecture}}' CONTAINER_NAME
docker inspect --format '{{.Env}}' CONTAINER_NAME
docker inspect --format '{{.Config.Env}}' CONTAINER_NAME
docker inspect --format '{{.Config.ExposedPorts}}' CONTAINER_NAME
docker inspect --format '{{.Config.Volumes}}' CONTAINER_NAME
https://devblogs.microsoft.com/premier-developer/running-docker-windows-and-linux-containers-simultaneously/
The text was updated successfully, but these errors were encountered: