Docker Community Forums

Share and learn in the Docker community.

Resize EBS volume with Cloudstor

aws
docker

(Korobitsin) #1

The EBS volume(s) are being created automatically by Cloudstor driver during “stack deploy”, with the following template:

version '3.4'

services:
  my-service:
    volumes:
      - my-volume:/data
  <...>

volumes:
  my-volume:
    name: '{{.Service.Name}}-{{.Task.Slot}}-vol'
    driver: cloudstor:aws
    driver_opts:
      backing: relocatable
      ebstype: gp2
      size: 1

While this works fine (including AZ change!), changing the size and re-deploying has no effect.
I noticed also that there is no “docker volume update” command.

Are docker volumes immutable?
Is it safe to use external tools (aws ec2 modify-volume && resize2fs) to do that manually?
Will Cloudstor support automatic volume resize in the future?