oracle / oci-cli

Command Line Interface for Oracle Cloud Infrastructure
https://cloud.oracle.com/cloud-infrastructure
Other
434 stars 183 forks source link

FILE command when using CLI container fails #775

Closed Ernst2020 closed 4 months ago

Ernst2020 commented 4 months ago

L.S.

I run the CLI Docker container in Windows, works fine.

However, any command that is specified with the “file://“ parameter fails with an error that the specified file cannot be found.

If I open a shell in that container the file to be used (mapped from the Windows directory to the container) is there, can be opened and has access permissions for all users (777). I can open it, write to it etc.

In that same directory in Windows (and thus in the container) the config file and ssh key are there and those are correctly accessed by the CLI, thus the CLI container has correct access to that directory.

But for some reason file:// fails. I tried all sorts of combinations such as:

file:”//…” file:”\…” file:…

Also changing the owner of the file from root to oci did not solve this.

Any clues?

Ernst

Ernst2020 commented 4 months ago

In the meantime I found out that “file:///…” works, i.e. three forwards slashes. Weird.

karthik-k-kamath commented 4 months ago

Thanks Ernst for sharing. Closing as parameter works with format “file:///…”