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

i followed:

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
Answer a question...

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