Closed lodurality closed 8 years ago
@lodurality , thanks for reporting. Indeed we’ve changed things a bit how REP runs within Docker. in particular:
make
Also
make remove
I’ve added option for make
to specify notebooks
folder - -e NOTEBOOKS=path_my_notebooks_folder
(pick it from https://github.com/anaderi/rep/blob/master/Makefile)
e.g.:
make -e NOTEBOOKS=~/notebooks run
PS you don’t have to use sudo
(after adding yourself to docker
group by usermod -G docker $(whoami)
)
It looks like make
doesn't see/use this option. Here is what I did:
docker
group.make -e NOTEBOOKS=~/notebooks run
, but it still starts notebook in in /var/lib/docker/volumes/.../_data/. NOTEBOOK_DIR=/notebooks
git clone $JPY_GITHUBURL $NOTEBOOK_DIR
$HOME/miniconda/envs/jupyterhub_py3/bin/jupyterhub-singleuser \
--port=8888 \
--ip=0.0.0.0 \
--user=$JPY_USER \
--cookie-name=$JPY_COOKIE_NAME \
--base-url=$JPY_BASE_URL \
--hub-prefix=$JPY_HUB_PREFIX \
--hub-api-url=$JPY_HUB_API_URL \
--notebook-dir=$NOTEBOOK_DIR
exit $?
Hi.
I had old REP docker version in ~/rep_container which started with run.sh script on 8080 port. I updated REP and it broke:
sudo $REPDIR/run.sh
worked, but I couldn't connect to localhost:8080 (connection refused). I've decided to update docker and REP according to new instructions: https://github.com/yandex/rep/wiki/Install-REP-with-Docker-(Linux).netstat -anl | grep 8888
gave empty resultgit checkout https://github.com/yandex/rep.git
didn't work (pathspec did not match any file(s) known to git), so I usedgit clone
instead.sudo make run
was successful and installed container.sudo make run
gave the followingdocker run -ti --rm -p 8888:8888 --name rep yandex/rep:0.6.4
Error response from daemon: Conflict. The name "rep" is already in use by container 3af0884aeedb. You have to remove (or rename) that container to be able to reuse that name. make: ** [run] Error 1*
sudo docker images
_REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE yandex/rep 0.6.4 18a48bc5a3b6 8 hours ago 2.635 GB anaderi/rep latest 63c3db2850b6 4 months ago 1.649 GB