containers / skopeo

Work with remote images registries - retrieving information, images, signing content
Apache License 2.0
7.83k stars 758 forks source link

skopeo search command #508

Closed thomasmckay closed 5 years ago

thomasmckay commented 6 years ago

I'd like to see skopeo search command implemented for use against registries that still continue to support the /v1/search route.

mtrmac commented 6 years ago

That could be useful. Note that podman search already exists and calls the relevant containers/image functionality; is that sufficient for you?

thomasmckay commented 6 years ago

@mtrmac - From a user point of view I'd prefer to position skopeo as the drop-in replacement for docker command line tool. Is that not the intent of skopeo?

mtrmac commented 6 years ago

No, skopeo is a fairly low-level front-end to containers/image. If you want a drop-in replacement, that’s precisely the intent of podman.

thomasmckay commented 6 years ago

Well then, let me give podman a spin.

thomasmckay commented 6 years ago

I am specifically using the "skopeo copy" functionality to save images to disk (for disconnected setup) as well as from registry-to-registry directly. Is there equivalent of these in podman?

mtrmac commented 6 years ago

Not quite; the tools are different because they have different goals.

podman has podman push / podman pull, precisely because it is intended as a drop-in replacement.

skopeo copy is the lower-level equivalent, which makes it possible to do other kinds of copies than push/pull, but it does not do higher-level work like automatically mapping between docker/distribution and containers/storage names, or using the registry search list.

Feel free to use both, whichever is better suited for the particular task.

thomasmckay commented 6 years ago

Then I'll leave this feature request up to you to open or close. It would be useful when skopeo copy things around to be able to search source and destination registries. I'd be in favor or implementing here.

Thanks for the pointer to podman, I'll be using that going forward for my integration testing.

mtrmac commented 6 years ago

I do think it makes sense to expose this in skopeo; OTOH with podman search available, it is not likely to be a priority; a PR would help make this happen.

thomasmckay commented 6 years ago

https://github.com/projectatomic/skopeo#todo ;) Funny.

If I ever manage to get a go debug environment set up (breakpoints, etc.), I may try to give this a shot myself. Probably far down my list of priority vs. hours in the day.

rhatdan commented 5 years ago

@thomasmckay Are you still interested in this? Or is podman search good enough?

thomasmckay commented 5 years ago

@rhatdan podman search is fine with me; closing. Thanks!