docker search
See original GitHub issueHi,
I would like to translate the following commands in Python :
docker login 10.72.2.70:5002
docker search 10.72.2.70:5002/digit_c2_child_gregoan
—> Elements are well visible
I’m doing :
import docker
...
client = docker.from_env()
client.login(username=registry_username, password=registry_password, registry=docker_registry_server)
# Returns an error
return_type = self.client.images.search(term="10.72.2.70:5002/digit_c2_child_gregoan")
# Doesn't return anything
return_type = self.client.images.search(term="digit_c2_child_gregoan")
Any idea about what I’m doing wrong ?
Regards.
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
docker search - Docker Documentation
Examples . Search images by name . This example displays images with a name containing 'busybox':.
Read more >How to find Docker images - Tutorial Works
Visit Docker Hub at hub.docker.com in your web browser. · Click Explore to view all images, or enter a search query to find...
Read more >How to search images from private 1.0 registry in docker?
Now from docker client you can simply search your private registry directly without using the HTTP APIs or any extra tools: e.g. searching...
Read more >How to List / Search / Pull docker images on Linux
Searching a Docker Image ... To search an image on a Docker registry, run the following command. ... Here, NAME : Is the...
Read more >How to Search Docker Images with docker search Command
Search command is very simple and easy to use, But not necessarily the best way to find docker images. Instead, you should search...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi, I used docker-registry-client Python module and it’s working fine. Thank you again for your help.
Hi @gregoan
I didn’t use any library for that, sorry for that. Every time I need to get something from the registry, I use the API for that.
You can use the reference documentation for that: https://docs.docker.com/registry/spec/api/.