Question

Docker swarm persistent volume with rexray/dobs and mariadb fails

  • Posted on February 4, 2022
  • fuguAsked by fugu

I am unable to mount a docker created volume with rexray/dobs into my mariadb container. It only happens with the optnami/mariadb image. i created the docker volume with:

docker volume create --name=mysql-data --opt=size=1 --driver=rexray/dobs

i do not assign the volume to a droplet via do dashboard or run the init configuration. i added the rexray/dobs plugin with:

docker plugin install rexray/dobs
DOBS_REGION=fra1
DOBS_STATUSINITIALDELAY=1000ms
DOBS_STATUSMAXATTEMPTS=100
DOBS_STATUSTIMEOUT=5m
DOBS_TOKEN=xxxx

i followed: https://github.com/rexray/rexray/issues/1321 https://medium.com/@adrian.gheorghe.dev/docker-swarm-volume-data-persistence-on-digital-ocean-with-rexray-cd418f718131

When i docker stack deploy my services i get:

“VolumeDriver.Mount: docker-legacy: Mount: mysql-data: failed: Error while waiting for storage action to finish”

and the service fails and restarts. The strange thing is that it happens only with the mariadb images - i have other images where it works


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer