Cyb3rWard0g / HELK

The Hunting ELK
GNU General Public License v3.0
3.73k stars 679 forks source link

Docker-Compose Fails with error: ERROR: for helk-elasticsearch Cannot create container for service helk-elasticsearch: b'Drive has not been shared' #79

Closed 1332530 closed 5 years ago

1332530 commented 6 years ago

Describe the problem When running an instance of docker-compose up, the operation fails with a terminating error when trying to bring up the first container; helk-elasticsearch.

What steps did you take trying to fix the issue? Attempted to comment out the compose instruction setting the volume:

How could we replicate the issue? Fresh build on Windows 10. Simply set location to HELK directory and run docker-compose up.

If you are having issue during the installation stage, please provide the HELK installation logs located at /var/log/helk-install.log Currently unable to provide logs seeing as this is a non-standard usage Windows build.

What version of HELK are you using? HELK 6.2.4-050318

What OS are you using to host the HELK? Windows 10, build 14393.

Any additional context? PS C:\Users\bruce.lavoie\git\DFIR\ThreatHunting\HELK> docker-compose up Creating helk-elasticsearch ... error

ERROR: for helk-elasticsearch Cannot create container for service helk-elasticsearch: b'Drive has not been shared'

ERROR: for helk-elasticsearch Cannot create container for service helk-elasticsearch: b'Drive has not been shared' ERROR: Encountered errors while bringing up the project.

helk-fail

Cyb3rWard0g commented 6 years ago

Try the following: https://github.com/docker/compose/issues/4303

On Command Line: "set COMPOSE_CONVERT_WINDOWS_PATHS=1";
Restart Docker for Windows;
Go to Docker for Windows settings > Shared Drives > Reset credentials > select drive > Apply;
Reopen Command Line;
Kill the Containers;
Rerun the Containers.

Also make sure the shares are configured properly:

https://blogs.msdn.microsoft.com/stevelasker/2016/06/14/configuring-docker-for-windows-volumes/

It is hard to test it in a different environment than the one recommended by the project. let me know if the things above helped. Thank you @1332530

Cyb3rWard0g commented 5 years ago

Hey @1332530 !! It has been a while and I have not heard from you and your testing in a WIndows box. It looks like a Docker issues to me. I will close this issue since the HELK is intended to be deployed in a Linux box according to our Wiki and development steps. Feel free to open an issue if you have any issues with HELK in Linux environments. Thank you!