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

Docker instructions #337

Closed
wants to merge 3 commits into from
Closed

Docker instructions #337

wants to merge 3 commits into from

Conversation

e6
Copy link
Contributor

@e6 e6 commented Jan 12, 2016

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


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
Copy link

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

Copy link
Contributor Author

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

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

@e6
Copy link
Contributor Author

e6 commented Feb 10, 2016

@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

@psychok7
Copy link

@e6 no, after running docker build -t portia . i run docker create --name portia-data -v /app/slyd/data:rw portia with the current master and the only error i get is Error response from daemon: Invalid bind mount spec "/app/slyd/data:rw": volumeinvalid: Invalid volume specification: '/app/slyd/data:rw'

@psychok7
Copy link

@e6 it turns out i was using master branch instead of develop. with develop i dont get the error but i still have to remove the rw if when i create the docker volume

@freeslugs
Copy link

@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

@psychok7
Copy link

@freeslugs if you use the develop branch the errors will stop.

@e6 from what i gathered #330 was merged to develop only and not to master so you should probably merge this PR to develop and not master because master is broken

@freeslugs
Copy link

@psychok7 it worked! btw using docker on mac, i guess the port forwarding didnt work so it's available on http://192.168.99.100:9001. thanks!

@ruairif
Copy link
Contributor

ruairif commented Feb 21, 2017

Superseeded by: #700

@ruairif ruairif closed this Feb 21, 2017
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

Successfully merging this pull request may close these issues.

None yet

4 participants