docker run --rm --device /dev/fuse --cap-add SYS_ADMIN -e BUCKET={{BUCKET NAME}} -v {{KEY FILE}}:/root/google.json --name googlecloudstorage -itd hashito/googlecloudstorage
or
docker run --rm --device /dev/fuse --privileged -e BUCKET={{BUCKET NAME}} -v {{KEY FILE}}:/root/google.json --name googlecloudstorage -itd hashito/googlecloudstorage
google reference... https://cloud.google.com/storage/docs/gcs-fuse
docker build -t googlecloudstorage .
docker run --rm --device /dev/fuse --cap-add SYS_ADMIN -e BUCKET={{BUCKET NAME}} --name googlecloudstorage -itd googlecloudstorage
or
docker run --rm --device /dev/fuse --privileged -e BUCKET={{BUCKET NAME}} --name googlecloudstorage -itd googlecloudstorage
docker exec -it googlecloudstorage /bin/bash
cd /root/gcs
echo "hi">test.txt
Test.txt is created in Cloud Storage *The inside of /root/gcs will be mounted by Cloud Storage.
Content type
Image
Digest
Size
67 MB
Last updated
about 6 years ago
docker pull hashito/googlecloudstorage