Closed nunix closed 2 years ago
After checking where the local store is located ($env:USERPROFILE\AppData\Local\kubewarden\cache\store), I could see that the file is empty and the permissions of the directory are set to have read-only files only:
Even if I remove the option and make the directory and files read/write, once I pull a policy it re-enables the read-only permission for files. This might be how the writing of the file is done by kwctl.
Version used: kwctl 0.2.4
kwctl pull error
When running
kwctl.exe pull
, I get the following error:Workaround and expected behavior
As hinted by @ereslibre , the issue seems to be related with the Docker config file, as I do have Docker Desktop installed:
kwctl policies error
After running the
kwctl.exe pull ...
, if I try to list the policies, I have the following error:Additional notes
I remarked that when I run
kwctl.exe pull ...
, the command ends very fast. Like it didn't pull the policy.I could confirm the behavior, but using the option
--output-path
, which took more time and downloaded the policy as it should:expected behavior
When running the
kwctl.exe pull ...
, it *really" pulls the policy to a local path (i.e. on Linux it's.cache/kubewarden/store/registry/ghcr.io/kubewarden/policies
for the registry policies).When running
kwctl.exe inspect
, I have the list of policies downloaded.Thanks in advance for your help 😄