How to see docker image contents

前端 未结 9 1204
说谎
说谎 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:44

    To list the detailed content of an image you have to run docker run --rm image/name ls -alR where --rm means remove as soon as exits form a container.

提交回复
热议问题