I am trying to create a data container for my application in Docker. I run this command to expose some volumes:
docker run --name svenv.nl-data -v /etc/environment -v /etc/ssl/certs -v /var/lib/mysql -d svenv/svenv.nl-data
The problem is that I get this error from this command:
Error response from daemon: cannot mount volume over existing file, file exists /var/lib/docker/aufs/mnt/aefa66cf55357e2e1e4f84c2d4d2d03fa2375c8900fe3c0e1e6bc02f13e54d05/etc/environment
If I understand the Docker documentation correctly. The creation of volumes for individual files is supported. Therefore, I do not understand why I am getting this error.
Is there anyone who can explain this? I am running Docker 1.9.1 on Ubuntu 14.04.
docker ubuntu
Sven van de scheur
source share