Closed thomasmckay closed 5 years ago
That could be useful. Note that podman search
already exists and calls the relevant containers/image functionality; is that sufficient for you?
@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?
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
.
Well then, let me give podman a spin.
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?
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.
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.
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.
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.
@thomasmckay Are you still interested in this? Or is podman search good enough?
@rhatdan podman search
is fine with me; closing. Thanks!
I'd like to see skopeo search command implemented for use against registries that still continue to support the /v1/search route.