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

Windows dev setup #566

Closed
ghost opened this issue Feb 16, 2020 · 3 comments
Closed

Windows dev setup #566

ghost opened this issue Feb 16, 2020 · 3 comments
Labels
question Further information is requested

Comments

@ghost
Copy link

ghost commented Feb 16, 2020

How to reproduce the problem
Installing using docker compose on Windows.

$ git clone https://github.com/doccano/doccano.git
$ cd doccano
$ docker-compose -f docker-compose.dev.yml up


Trying to setup dev environment using docker compose.
Error in powershell:

ERROR: for doccano_backend_1 Cannot start service backend: OCI runtime create failed: container_linux.go:346: starting container process caused "process_linux.go:449: container init caused "rootfs_linux.go:58: mounting \"/var/lib/docker/volumes/doccano_venv/_data\" to rootfs \"/var/lib/docker/overlay2/60285993abd46b610ecfd9dbe612b213e898e9f993d1b6e7056e568db1458ef8/merged\" at \"/var/lib/docker/overlay2/60285993abd46b610ecfd9dbe612b213e898e9f993d1b6e7056e568db1458ef8/merged/src/venv\" caused \"mkdir /var/lib/docker/overlay2/60285993abd46b610ecfd9dbe612b213e898e9f993d1b6e7056e568db1458ef8/merged/src/venv: file exists\""": unknown

ERROR: for backend Cannot start service backend: OCI runtime create failed: container_linux.go:346: starting container process caused "process_linux.go:449: container init caused "rootfs_linux.go:58: mounting \"/var/lib/docker/volumes/doccano_venv/_data\" to rootfs \"/var/lib/docker/overlay2/60285993abd46b610ecfd9dbe612b213e898e9f993d1b6e7056e568db1458ef8/merged\" at \"/var/lib/docker/overlay2/60285993abd46b610ecfd9dbe612b213e898e9f993d1b6e7056e568db1458ef8/merged/src/venv\" caused \"mkdir /var/lib/docker/overlay2/60285993abd46b610ecfd9dbe612b213e898e9f993d1b6e7056e568db1458ef8/merged/src/venv: file exists\""": unknown
ERROR: Encountered errors while bringing up the project.

Your Environment

  • Operating System: Windows
  • Python Version Used: 3.6
  • When you install doccano: 16th Feb 2020
@icoxfog417 icoxfog417 added the question Further information is requested label Feb 16, 2020
@icoxfog417
Copy link
Contributor

Could you please confirm that you can mount the volume? I tried Windows10/Python 3.6/Docker v19.03.5, it works fine.

@ghost
Copy link
Author

ghost commented Feb 16, 2020

Hey @icoxfog417 ,
Thanks for the quick response.
image

I have mounted my C drive as volume and there is no other drive.
Should I be mounting the exact folder that I cloned my github repo into?
Is there any prerequisite packages that I should have besides docker , Also should I change my default containers to windows instead of linux?

Thanks again, appreciate the help.

@ghost
Copy link
Author

ghost commented Feb 16, 2020

Hi @icoxfog417 ,
Thanks for helping out.

I removed everything that I had in docker images and containers and used docker-compose again and this time it worked.

Thanks for trying to help. Appreciate it.

@ghost ghost closed this as completed Feb 16, 2020
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant