-
Notifications
You must be signed in to change notification settings - Fork 642
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to create volume with alternative driver #985
Comments
When you call "mvn -X docker:volume-create" could you please look out for log output with "Creating volume ..." and "Volume create config ..." ? Please post them here as it seems that there is an issue to put the driver properly into the API call. Thanks ! |
Remember, you have to call |
I completely missed the need to run the |
Cool ;-) However, I think it would be still a good addition to docker-maven-plugin that, if a volume is referred during startup and if this does not exist and a volume configuration exists, then this should be taken to create the volume upfront, not relying on Docker to create it implicitly during startup with default params. The documentation needs also an update to reflect that you cannot only configure real host paths in bind mounts, but also volumes (this is also weak in the Docker documentation itself). Let me close this issue if you don't mind and create a new one for this task. |
Description
I am trying to create volumes using rexray as the driver, but the volume is created with the local driver.
I have rexray installed and can create volumes with the rexray command line. If I run
a rexray volume is created:
I can also create a volume with
However, when I use the plugin to create the volume, it is created with the local driver.
It looks like either the plugin is ignoring the driver, or the driver is failing to create the volume, but then the plugin is not failing but continuing on and effectively using the default driver.
Info
mvn -v
) :I configured the plugin as below.
I was starting an images based on the SQL Server image, but any image would probably work.
The text was updated successfully, but these errors were encountered: