This image is based on Alpine Linux image - a 5MB image - and contains OpenJDK 8.
By default everything runs on localhost with http scheme. The UI listens on port 5000
in the container and can be mapped to the desired port on the host. The API server listens on port 8089
.
$ docker run --name vizier-scala -p 5000:5000 -p 8089:8089 okennedy/vizier:latest
Having the notebooks stored in the docker container itself is often not very useful. To store notebooks on your host machine, e.g., in a directory /home/me/vizier-data
, you can use docker's -v
option to mount the directory into the container. Note that docker expects absolute paths. Vizier itself is state-less, so as long as the data directory is stored on the host, you will not loose any pogress when stopping and deleting the container.
$ mkdir vizier-data
$ docker run --name vizier --rm -p 5000:5000 -p 8089:8089 -v "$(pwd)"/vizier-data:/vizier.db okennedy/vizier:latest
If you already have some other process listening on port 5000, you can tell docker to forward port 5000
from the container to a different port on the host. However, you need to inform Vizier about this too. For example, to forward to port 7000
, do:
$ docker run --name vizier-scala -p 7000:5000 -p 8089:8089 okennedy/vizier:latest --public-url http://localhost:7000/
Alternatively, the image can be built from the Dockerfile in this repo:
$ docker build <path/where/dockerfile/is/cloned>