exdx/dcp

Error when copying content from local image

Closed this issue ยท 1 comments

exdx commented
$ dcp quay.io/operator-framework/rukpak:latest
 ERROR dcp > โŒ error 404 Not Found - manifest for quay.io/operator-framework/rukpak:latest not found: manifest unknown: manifest unknown
 DEBUG dcp > ๐Ÿ“ฆ Created container with id: "b529d9210b1ec503ff8e90a0e8d83ef6cbc232161f0f59d68bceedebed919eb4"
 INFO  dcp > โœ… Copied content to . successfully
 DEBUG dcp > ๐Ÿ“ฆ Cleaned up container "b529d9210b1ec503ff8e90a0e8d83ef6cbc232161f0f59d68bceedebed919eb4" successfully

dcp does successfully copy the container filesystem, but it gives a misleading error when presented with an image that is not on a remote registry (just one built locally). It should first check to see if the image is available locally before attempting to pull it.

exdx commented

There should also be a --force flag that will cause dcp to pull the image from a remote, even if a local version of the image is present.