Closed electriquo closed 4 months ago
apk should exit in the image. for more information, see steps to reproduce.
apk
apk isn't found. for more information, see steps to reproduce.
$ docker run --rm -it --entrypoint /bin/sh node:lts-alpine@sha256:c0a3badbd8a0a760de903e00cedbca94588e609299820557e72cba2a53dbaa2c -c 'whoami && apk --version' root apk-tools 2.14.0, compiled for aarch64.
$ docker run --rm -it --entrypoint /bin/sh node:lts-alpine@sha256:f3299f16246c71ab8b304d6745bb4059fa9283e8d025972e28436a9f9b36ed24 -c 'whoami && apk --version' root /bin/sh: 1: apk: not found
That SHA references a debian image, not an alpine one.
When using a sha reference with a tag, the sha isn't validated against the tag because tags change all the time.
Environment
Expected Behavior
apk
should exit in the image. for more information, see steps to reproduce.Current Behavior
apk
isn't found. for more information, see steps to reproduce.Possible Solution
Steps to Reproduce
Additional Information