Our team has been building docker images that contain metadata manifest files. Ideally, before we run an image, we’d love to inspect that metadata file, using something like:
docker cp image-name:/path/to/manifest /local/path/to/manifest
so that we can make decisions about how we want to run it. Of course it’s possible to get at our files by creating a throwaway container:
docker run --name temp-container-name image-name /bin/true
docker cp temp-container-name:/path/to/manifest /local/path/to/manifest
docker rm temp-container-name
But is there a way to copy a file directly from an image without first creating a container?