![]() | 1 | initial version |
Given that I use Fedora, that in turn use SELinux, there was a change of security context to do on the host file under the host dir, before running for the first time the container with the mount
chcon -Rt svirt_sandbox_file_t ~/host/dir
Then, the following script, run as root, do the job
#!/bin/bash
docker run \
-p8888:8888 \
--name sagemath \
-v ~/host/dir:/home/sage/sage/build \
sagemath/sagemath:latest sage-jupyter
docker stop sagemath
docker rm sagemath
Only the first time it is run, it download the sagemath Docker image file.
You have to exit from within Jupyter with Shutdown.