Closed tsaridas closed 7 years ago
Are you creating a random named RBD each time? The plugin API afaik does not support any feedback mechanism about whether the container actually successfully started or not, so if plugin gets a request for a volume, it will create it. API is very simple/dumb in that way.
@porcupie no, its the same docker image with the same rbd image that I'm trying to create.
the plugin is set to create the images automatically and as I said it only does it when the image is not there hence not ran successfully at least once.
Not sure if it has something to do with marathon that I'm using to spawn the containers.
That is actually a "problem" with docker: if the dockerfile defines a volume and you specify that you want to use the rbd driver in the marathon json file, then, if you don't explicitly provide a mountpoint for the docker volume, docker will create one with a "random" name.
I had this problem with a docker image that defined a volume on path1
, which I ignored completely and defined another one for path2
. This was leading to the creation of these random images.
Once changed, the problem went away.
Images being created when docker fails to start and image does not exist. I'll try to get more logs.