How to see docker image contents

前端 未结 9 1181
说谎
说谎 2020-11-30 16:18

I did a docker pull and can list the image that\'s downloaded. I want to see the contents of this image. Did a search on the net but no straight answer.

9条回答
  •  失恋的感觉
    2020-11-30 16:31

    There is a free open source tool called Anchore that you can use to scan container images. This command will allow you to list all files in a container image

    anchore-cli image content myrepo/app:latest files

    https://anchore.com/opensource/

提交回复
热议问题