-
Notifications
You must be signed in to change notification settings - Fork 55
Doesn't seem to work with Docker 1.12 (RC) swarm mode #45
Comments
Are you running journalctl as root? There should be docker logs at least. |
Sorry Ahmet, I wasn't specific enough. I DO get log entries (both for docker and azurefile-dockervolumedriver) using However, I do get some entries when running the
as well as when running in "local" mode using
|
hmm could you send the full |
Sure, here it is:
Contents of the file
|
hmm I do not see the following lines, can you please run the same commands so that it fails to find the file again?
|
The "could not find metadata" message came from creating the volume. So I removed and re-created it:
Actually, I think the "could not find metadata" message is not reflecting an actual error. Maybe it just checks for the volume existence before creating it. The weird thing is that there are zero log entries when running the service create command. I might check with the docker guys to see if we can get more insight. |
@stefanegg ah right, it's for the /Volumes.Get operation and is checking if volume exists by examining its metadata path. Can you perhaps try another Docker Volume driver (https://docs.docker.com/engine/extend/plugins_volume/) and see if they are compatible with Docker-1.12. Until now, as volume driver authors we have been broken at every single Docker release since volume drivers came out. So I wouldn't be surprised the swarm mode is somewhat incompatible or does things different than before. |
@ahmetalpbalkan, looks like the latest release(s) fixed this. I can confirm it works successfully with the latest final Docker release (1.12.0) and the latest version of the azurefile-dockervolumedriver (0.4.1) on an Ubuntu 16.04 LTS Azure VM. |
I'm having problems getting the driver to work with the new docker swarm mode:
Environment/Preps:
docker volume create --name myshare -d azurefile -o share=myshare
docker volume ls
A "local mode" container is working like a charm:
docker run -d -v myshare:/data instavote/vote
However, spinning up a container using the new Docker swarm mode does not work:
docker service create --name aztest --replicas 1 --mount type=volume,source=myshare,target=/data,volume-driver=azurefile instavote/vote
docker service ls
will always showREPLICAS 0/1
docker ps -a
will show nothingjournalctl -fu azurefile-dockervolumedriver
journalctl -fu docker
Running the same command using a local volume works fine:
docker service create --name test --replicas 1 --mount type=volume,source=myshare-local,target=/data,volume-driver=local instavote/vote
The text was updated successfully, but these errors were encountered: