0

Is there any field in the docker inspect that can identify a docker scratch image ( image without an OS) https://docs.docker.com/develop/develop-images/baseimages/?

If not is there any other way to detect an image without an OS ?

What does the RepoDigests field in the docker inspectrepresent ?

misha
  • 122
  • 6
  • What do you mean by a "docker scratch image"? Do you mean an image with no content? – larsks Jun 30 '21 at 19:42
  • 1
    I would think that all images are somehow based on scratch if you go back far enough. For example ubuntu here: https://github.com/tianon/docker-brew-ubuntu-core/blob/1c090689a541a57452ae21cb76ef038b9f339fb2/focal/Dockerfile – Hans Kilian Jun 30 '21 at 20:27
  • Not really, however if you have built the image yourself you could use `docker history`. https://stackoverflow.com/a/45821686/10093070 – Chiel Jun 30 '21 at 20:38
  • What even is "an image without an OS"? An image can be as small as a single binary and still be functional. Can you tell us more about exactly what you're trying to do? – larsks Jun 30 '21 at 21:10

0 Answers0