Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
15 lines (13 sloc) 789 Bytes
# copy the script into the container; note: the resulting file is owned by root and it not executable
docker cp jupyter:/home/jovyan/
# copy the script to make it accessible and executable
docker exec -d jupyter bash -c 'cp ~/ ~/ && chmod +x ~/'
# execute the script inside the container - to install a number of packages
docker exec -it jupyter sh /home/jovyan/
# restart the docker container
docker restart jupyter
echo 'restarted Jupyter container'
# perhaps clone a GitHub repo inside the Jupyter container
# docker exec -it jupyter git clone
# and more stuff?
# docker logs jupyter