Camilo Valenzuela
09/07/2021, 4:00 PMPermissionError
when the get-data.py
step is downloading the data.Yannick
get-data.py
step downloads some data and stores it in the mounted /data
directory, which is actually the userdir/data
directory from your host. Could you run ls -al userdir
and post the output here?Camilo Valenzuela
09/07/2021, 4:38 PMuserdir
folder is owned by my current user
total 32
drwxr-sr-x 6 cvalenzu cvalenzu 4096 Sep 7 13:45 .
drwxr-xr-x 11 cvalenzu cvalenzu 4096 Sep 7 13:45 ..
-rw-r--r-- 1 cvalenzu cvalenzu 23 Sep 7 13:45 .gitignore
drwxr-sr-x 6 cvalenzu cvalenzu 4096 Sep 7 15:04 .orchest
-rw-r--r-- 1 cvalenzu cvalenzu 101 Sep 7 13:45 README.md
drwxr-sr-x 2 cvalenzu cvalenzu 4096 Sep 7 15:52 data
drwxr-sr-x 2 cvalenzu cvalenzu 4096 Sep 7 13:45 jobs
drwxr-sr-x 3 cvalenzu cvalenzu 4096 Sep 7 15:08 projects
Rick Lamers
Camilo Valenzuela
09/07/2021, 5:01 PMRick Lamers
Yannick
Root partition, which is mounted as read-only.
Stateful partitions, which are writable and stateful.
Stateless partitions, which are writable but the contents do not persist across reboots.
When using Container-Optimized OS, be aware of the partitioning if you run your own services that have certain expectations about the file system layout outside of containers.So it could very well be that the root partition is mounted into the container, and thus nothing can be written to the mounted
/data
directory as it is read-only.Camilo Valenzuela
09/07/2021, 6:00 PMRick Lamers
/mnt/disks
for this specifically. See https://cloud.google.com/container-optimized-os/docs/concepts/disks-and-filesystem#mounting_and_formatting_disks for more details.
The easiest would be to use the Ubuntu Server or Debian system images and install the Docker CLI on them.Yannick
Camilo Valenzuela
09/08/2021, 6:29 PMYannick