Comments (6)
No idea. Where is imagesPlainLocal
coming from (so I can maybe better understand why this one works)?
from local-persist.
Hi. Sorry. I should have been clearer. It was an attempt to show that a "normal" volume would work on the same image and shell combination
from local-persist.
@joaocc If you want to use the Docker version of the plugin, you need to share the volumes you want to mount, otherwise it won't share them with the ghost. Dunno if that's the issue you're seeing here, but I was having problems recreating this issue.
from local-persist.
@joaocc based on my experiment using this plugin inside container, you should pass the second volume using exactly the same path:
$ docker run -d \
-v /run/docker/plugins/:/run/docker/plugins/ \
-v /var/local/docker-volume--local-persist/:/var/local/docker-volume--local-persist/ \
cwspear/docker-local-persist-volume-plugin
or
$ docker run -d \
-v /run/docker/plugins/:/run/docker/plugins/ \
-v /data2/:/data2/ \
cwspear/docker-local-persist-volume-plugin
Use a path that available in the docker server. This is to make sure that the mountpoint used when creating the named volume have the same path in both docker-server and inside local-persist-plugin container. Using different path will just make things more complicated when you want to set the mountpoint for the named volume.
from local-persist.
Haven't heard from the from the original poster in a while (I know I was kinda slow to respond 😦), but I'm going to go ahead and close this. Feel free to reopen if we still think there's an issue here.
from local-persist.
Hi. Managed to have some time to test this (docker 1.11.2, ubuntu 16.04).
The error appears whenever I mount a folder that doesn't exist.
For instance: It works if I do the following:
$ docker run -d --name="docker-plugin-volume-local-persist" --restart="always" \
-v "/run/docker/plugins/:/run/docker/plugins/" \
cwspear/docker-local-persist-volume-plugin:latest
$ docker volume create -d local-persist \
-o mountpoint=/tmp/test-persist
--name=testvol
$ docker run --rm -it -v testvol:/test.data ubuntu bash
docker: Error response from daemon: Container command 'bash' not found or does not exist..
$ mkdir /tmp/test-persist
$ docker run --rm -it -v testvol:/test.data ubuntu bash
So I think maybe a more explicit error message would be good.
And, even better, have the plugin create the folder as per #32 :)
Cheers
from local-persist.
Related Issues (20)
- no permission HOT 1
- Works with symlinks?
- source path is not contained in array "mounts" when querying a container HOT 1
- Install script fails at line 7 'dirname' HOT 10
- Did git clone, THEN trying to run install.sh script...
- Missing release for arm64
- Docker Toolbox - Error Install local-persist in
- Cannot create container for service xxx permission denied HOT 6
- Not working on windows 10 WSL 2
- Relative mountpoint in compose file HOT 5
- WSL Plugin not found / registered HOT 1
- WSL - checking understanding of container installation instructions
- docker-compose v3 example HOT 2
- arm64 support HOT 1
- Error: no such file or directory: unknown HOT 1
- support for Apple Silicon HOT 1
- Request: aarch64 support HOT 6
- Logs: Get Called...Couldn't find xxxx
- install.sh stops execution with code 1 after recent commit HOT 2
- issue on installing HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from local-persist.