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
Docker instructions #337
Docker instructions #337
Conversation
playing catch up with scrapinghub/portia
|
||
Create a Docker [volume](https://docs.docker.com/engine/userguide/dockervolumes/) for the Portia project data: | ||
|
||
docker create --name portia-data -v /app/slyd/data:rw portia |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@e6 when i run this i get a Error response from daemon: Invalid bind mount spec "/app/slyd/data:rw": volumeinvalid: Invalid volume specification: '/app/slyd/data:rw'
with Docker version 1.10.0, build 590d5108
in Ubuntu 14.04 LTS
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
type the following command to create the volume where portia will store the data, then run the docker run command and report back --
docker create --name portia-data -v /app/slyd/data:rw portia
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@e6 i got this to work if i dont specify the rw
i.e docker create --name portia-data -v /app/slyd/data portia
using the latest docker version
@psychok7 do you get this error as well above the error you posted? WARNING: Error loading config file:/.docker/config.json - stat /.docker/config.json: permission denied |
@e6 no, after running |
@e6 it turns out i was using master branch instead of |
@e6 @psychok7 i am getting the same errors as you - stuck on: Traceback (most recent call last):
File "bin/slyd", line 41, in <module>
splash.server.main()
File "/usr/local/lib/python2.7/dist-packages/splash/server.py", line 326, in main
opts, _ = parse_opts(jupyter, argv)
TypeError: add_args() takes no arguments (2 given |
@freeslugs if you use the @e6 from what i gathered #330 was merged to |
@psychok7 it worked! btw using docker on mac, i guess the port forwarding didnt work so it's available on |
Superseeded by: #700 |
At the very least, please update http://portia.readthedocs.org/en/latest/installation.html#docker to reflect the correct docker command to run portia:
docker run -i -t --rm
-v portia-data:/app/slyd/data:rw
-p 9001:9001
--name portia
portia
This was merged before to the README.md but the fix was not updated on readthedocs.org.
Thank you