You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@bleal-kitmanlabs Copa parses for the os-release file since that is the standard in linux distributions. I am not able to find an os-release or lsb-release file when inspecting the file structure with crane, is there anything I am missing here?
@ashnamehrotra thanks for coming back. In a case the os-release file does not exist, is there any way I can pass as a parameter the OS the image was built on top?
Also, the command lsb_release may print some useful information.
@bleal-kitmanlabs there is no way to pass in the parameter the OS image was built on top of currently. That is something we can consider adding for the future, but we would need to pass in both os type and version.
Version of copa
copa version 0.9.0
Expected Behavior
Copa should be running lsb-release and parsing the results to know what is the OS the docker image was built on top.
Actual Behavior
It seems it assumes to always look to /etc/os-release, but not all OS have it. In my case, with prometheus, its throwing the following error:
Error: open /etc/os-release: no such file or directory
Steps To Reproduce
export IMAGE="prom/prometheus:v3.1.0-rc.1@sha256:de8cca5437dbb2ce9c00b139e3ca6afc6dcdc8905cedd28329f7809bc77852a3"
docker pull $IMAGE
copa patch -i $IMAGE --debug
output :
Are you willing to submit PRs to contribute to this bug fix?
The text was updated successfully, but these errors were encountered: