Docker: What's available in the parent image?

405 views Asked by At

In docker how do I know what packages are available in the parent image I am using?
I am trying something like:

docker search python  

but I get some (network?) error.
I have the image locally. How would I search what packages I can use?

1

There are 1 answers

3
whites11 On

docker search is the command you use to search for docker images on the docker hub.

If I understood well your question, given an image (say alpine:latest) you want to know what's inside that image.

If that's the case, the only thing you can do IMHO is just run the container and explore it.

You can do that for the alpine:latest image with the following command:

docker run --rm -ti alpine:latest ash

You'll get a prompt inside an instance of the mentioned image and you can dig around to check what's available.

There is no place where you can access informations about the content of an image in a structured way.