VARIS VONGUEA-AREE

PHP 🐍 Python 🔥 Golang 🇹🇭 Bangkok Thailand

High level experience in web design and development knowledge, producing quality work.

For more info
  • Home
  • About
  • Project
  • Blog
  • Varisz
  • Cloud
  • Rexray ต่อกับ DigitalOcean Block Storage

Rexray ต่อกับ DigitalOcean Block Storage

https://rexray.readthedocs.io/en/stable/

https://github.com/rexray/rexray

ติดตั้ง

docker plugin install rexray/dobs DOBS_TOKEN=YOUR_DIGITALOCEAN_TOKEN DOBS_REGION=sgp1 LINUX_VOLUME_FILEMODE=0775

สามารถเอา token ได้จาก

Creating a volume

docker volume create --name=my-dobs --opt=size=10 --driver=rexray/dobs
docker volume ls
DRIVER               VOLUME NAME
rexray/dobs:latest   my-dobs

Mounting the new volume to a container

docker run -ti -v my-dobs:/my-folder busybox
df -h | grep my-folder
/dev/sda                  9.8G     36.0M      9.2G   0% /my-folder

ref

https://www.digitalocean.com/community/questions/how-to-attach-digitalocean-block-storage-to-docker-container

© 2021 All rights reserved by varisz