This uses the Jupyter-PHP project to load a PHP kernel in Jupyter.
docker pull benramsey/jupyter-php
Run the following command. It will print out a 127.0.0.1
address that
you may use to open the Jupyter notebooks in a browser.
docker run --rm -p 8888:8888 benramsey/jupyter-php:latest
To use and save notebooks on your host machine, connect a volume to
/home/jovyan/work
in the container.
docker run --rm -p 8888:8888 -v "$PWD":/home/jovyan/work benramsey/jupyter-php:latest
To run the example notebooks from this repository:
git clone https://github.com/ramsey/jupyter-php-docker.git
cd jupyter-php-docker
docker run --rm -p 8888:8888 -v "$PWD/examples":/home/jovyan/work benramsey/jupyter-php:latest