Skip to content
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

Running local-persist from within a container on Windows 10 #65

Open
devopsn opened this issue Oct 31, 2018 · 2 comments
Open

Running local-persist from within a container on Windows 10 #65

devopsn opened this issue Oct 31, 2018 · 2 comments

Comments

@devopsn
Copy link

devopsn commented Oct 31, 2018

I have Docker set up on my Windows 10 laptop. I am trying to run local-persist from within a container as described here - https://github.com/CWSpear/local-persist#running-from-within-a-container-aka-running-on-mac-or-windows

  1. I am able to run the command "docker run -d " as specified in section "Running from Within a Container (aka Running on Mac or Windows)"
  2. The command executes successfully
  3. Then I run "docker volume create -d local-persist ....." as specified in section - "Usage: Creating Volumes" Execution completes without errors
  4. Now, I am not sure as to what is the volume I need to specify while invoking - "docker run -d -v ..." That is, which is the volume I am supposed to specify? Is it the volume that I specified originally in step 1 as the 3rd parameter ie, "/path/to/where/you/want/data/volume/"?

Some clarification would go a long way.

Thanks in advance.

@CWSpear
Copy link
Collaborator

CWSpear commented Oct 31, 2018

It says in the docs that that volume needs to match up your mountpoints and has an example.

So if you do

docker run -d -v /data:/data ...

Then you need your mountpoint for a volume to start with /data:

docker volume create -d local-persist -o mountpoint=/data/images --name=images

@devopsn
Copy link
Author

devopsn commented Nov 7, 2018

Thanks, I am able to get it working with Docker for Windows installation in Windows 10 Laptop. But follwoing the same steps not working in Docker Toolbox.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants