Nic
10/25/2022, 2:23 PMA list of volume mount strings in the format of "local_path:container_path".
Would following bind my Local G:/ Drive to a G:/ in the docker, or should I write it differently?Ryan Peden
10/25/2022, 2:35 PMg:/:/opt/prefect/gdrive
and then your shared g:
drive would be available inside the container at /opt/prefect/gdrive
.
You can mount the shared drive elsewhere in the container if you'd like. But /opt/prefect
is the working directory Prefect uses in the container, so it seems like a sensible place to put the shared drive.Nic
10/25/2022, 2:55 PMRyan Peden
10/25/2022, 2:58 PMNic
10/25/2022, 3:09 PMRyan Peden
10/26/2022, 6:04 PMdocker volume create
command, as shown in this example.
Then you should be able to use the volume you create in the volumes section of your block. You would take whatever name you give your volume and use it instead of g:/
in the Docker block, so for example if you name your volume my_network_drive
, the entry in your Docker block would change from g:/:/opt/prefect/gdrive
to my_network_driveopt/prefect/gdrive
Nic
10/26/2022, 6:08 PM