docker_remote.image.load(file) local or remote path? #622
-
hello community, i am in the process to convert my (bad) bash-script for manual deploys to a python version. i have two docker clients - my local on and the remote one.
( i bundled my script in a simple class..) and with this i tried to use the image.load
if i check on the server the file is there:
so is the path given here a local path? sunny greetings |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I believe that docker load always use a local path and never a remote path. In general, you can never read files on the remote host (docker cp, docker build all use local paths). Containers can have access to the remote files of course with volumes, but that's not what you want. I don't have any solution to read a remote path. Thats a docker issue, not a python-on-whales issue. You'd have the same problem when using "docker --host=... load" from the command line. |
Beta Was this translation helpful? Give feedback.
I believe that docker load always use a local path and never a remote path. In general, you can never read files on the remote host (docker cp, docker build all use local paths). Containers can have access to the remote files of course with volumes, but that's not what you want.
I don't have any solution to read a remote path. Thats a docker issue, not a python-on-whales issue. You'd have the same problem when using "docker --host=... load" from the command line.