April 2018
Beginner
238 pages
7h 13m
English
The specifics about the software running in a Docker instance are governed by the Dockerfile. This file provides commands to the Docker environment as to which components to use to configure this instance. Sample Dockerfile contents for a Jupyter implementation would be:
ENV TINI_VERSION v0.6.0ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /usr/bin/tiniRUN chmod +x /usr/bin/tiniENTRYPOINT ["/usr/bin/tini", "--"]EXPOSE 8888CMD ["jupyter", "notebook", "--port=8888", "--no-browser", "--ip=0.0.0.0"]
Here is a discussion on each of the commands of the Dockerfile: