Closed matzora closed 6 years ago
It's ok ! i have understand whats going on. I have wrong parameters to the "-v" option of docker run.
I use this command and it's works.
$ sudo docker run -it --name=greyhound -p 8080:8080 --network=webviewernetwork -v /opt/data/entwine/:/entwine connormanning/greyhound
My data are correctly mounted to /entwine in my docker container.
I am attempting to query data from Greyhound.
I have data produced by Entwine located at : /opt/data/greyhound/
example : /opt/data/greyhound/autzen/
I have a configuration file for greyhound located at : /opt/data/greyhound/greyhound-config.json
I start the greyhound container with the following commands and i got the same error when i go to this URL : http://localhost:8080/resource/autzen/info
sudo docker run -it -v ~:/opt/data/greyhound -p 8080:8080 --network=webview ernetwork connormanning/greyhound
And
sudo docker run -it -v ~:/opt/data -p 8080:8080 --network=webviewernetwork connormanning/greyhound
When i'm trying to access info i get an error in terminal.
Creating autzen Trying /greyhound: fail - Could not read file /greyhound/autzen/entwine Trying ~/greyhound: fail - Could not read file /root/greyhound/autzen/entwine Trying /entwine: fail - Could not read file /entwine/autzen/entwine Trying ~/entwine: fail - Could not read file /root/entwine/autzen/entwine Trying /opt/data: fail - Could not read file /opt/data/autzen/entwine HTTP error: autzen could not be created
I don't understand why the word "entwine" is added to the path.
When i add to my commands : command + -c /opt/data/greyhound/greyhound-config.json. It doesn't change anything.
When i renamed the folder greyhound to entwine it does the same error.
I have also tried this command but i got the same error.
docker run -it --network=webviewernetwork -p 8080:8080 -v
pwd
:/opt/data/greyhound connormanning/greyhound "bash -c \"cp /opt/data/greyhound/greyhound-config.json /var/greyhound/config.json && greyhound dockerstart && greyhound log\""So i don't understand what's going on.
I suppose something goes wrong but i can't figure it out.