-
Notifications
You must be signed in to change notification settings - Fork 248
Fix docker command examples in "Getting started" in README #216
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
base: master
Are you sure you want to change the base?
Conversation
Without the --platform option, docker fails with "docker: no matching manifest for linux/amd64 in the manifest list entries". With the option, eveything works as intended.
| $ docker run --rm --privileged multiarch/qemu-user-static --reset -p yes | ||
| $ docker run --rm -t arm64v8/ubuntu uname -m | ||
| $ docker run --rm -t --platform linux/arm64v8 arm64v8/ubuntu uname -m |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't work either:
$ docker run --rm -t --platform linux/arm64v8 arm64v8/ubuntu uname -m
Unable to find image 'arm64v8/ubuntu:latest' locally
latest: Pulling from arm64v8/ubuntu
docker: no matching manifest for linux/arm64v8 in the manifest list entries.
See 'docker run --help'.
After changing the --platform to just arm64 it "works" as intended:
$ docker run --rm -t --platform linux/arm64 arm64v8/ubuntu uname -m
Unable to find image 'arm64v8/ubuntu:latest' locally
latest: Pulling from arm64v8/ubuntu
97dd3f0ce510: Pull complete
Digest: sha256:6ef519d3df37418310d265d26fa804357ff50c9e721e9b90823ff294938023d8
Status: Downloaded newer image for arm64v8/ubuntu:latest
exec /usr/bin/uname: exec format error
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| $ docker run --rm -t --platform linux/arm64v8 arm64v8/ubuntu uname -m | |
| $ docker run --rm -t --platform linux/arm64 arm64v8/ubuntu uname -m |
|
|
||
| ``` | ||
| $ docker run --rm -t arm32v6/alpine uname -m | ||
| $ docker run --rm -t --platform linux/arm32v6 arm32v6/alpine uname -m |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same as above:
$ docker run --rm -t --platform linux/arm32v6 arm32v6/alpine uname -m
Unable to find image 'arm32v6/alpine:latest' locally
latest: Pulling from arm32v6/alpine
docker: no matching manifest for linux/arm32v6 in the manifest list entries.
See 'docker run --help'.
$ docker run --rm -t --platform linux/arm arm32v6/alpine uname -m
Unable to find image 'arm32v6/alpine:latest' locally
latest: Pulling from arm32v6/alpine
dd0740468c9e: Pull complete
Digest: sha256:e86713155975b687d8ee532b1580704c4d06e46349d43f915e237d0d1392b5f9
Status: Downloaded newer image for arm32v6/alpine:latest
exec /bin/uname: exec format error
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| $ docker run --rm -t --platform linux/arm32v6 arm32v6/alpine uname -m | |
| $ docker run --rm -t --platform linux/arm arm32v6/alpine uname -m |
| s390x | ||
| $ docker run --rm -t arm64v8/fedora uname -m | ||
| $ docker run --rm -t --platform linux/arm64v8 arm64v8/fedora uname -m |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| $ docker run --rm -t --platform linux/arm64v8 arm64v8/fedora uname -m | |
| $ docker run --rm -t --platform linux/arm64 arm64v8/fedora uname -m |
| aarch64 | ||
| $ docker run --rm -t arm32v7/centos uname -m | ||
| $ docker run --rm -t --platform linux/arm32v7 arm32v7/centos uname -m |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| $ docker run --rm -t --platform linux/arm32v7 arm32v7/centos uname -m | |
| $ docker run --rm -t --platform linux/arm arm32v7/centos uname -m |
This fixes issue 215
Without the
--platformoption, docker fails with"docker: no matching manifest for linux/amd64 in the manifest list entries".
With the option, everything works as intended.