question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hi,

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:closed
  • Created 4 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
gregoancommented, Dec 6, 2019

Hi, I used docker-registry-client Python module and it’s working fine. Thank you again for your help.

0reactions
feliperuhlandcommented, Dec 5, 2019

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/.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found