Paul C
Paul C

Reputation: 8457

How to list the files inside a docker image without running it as a container?

I have a docker image where I have forgotten what the start command is. This is a stripped down container without any shell, so I can't just run it temporarily as a sh/bash container and do an ls.

How do I see the files inside this image?

Upvotes: 1

Views: 1289

Answers (1)

user2915097
user2915097

Reputation: 32156

You should try

docker history --no-trunc your_image

it should show you as first command the start command.

Upvotes: 1

Related Questions