kopia lustrzana https://github.com/jupyterhub/repo2docker
Merge pull request #205 from yuvipanda/clarify-debug
Clarify that --debug and --no-build are for debugging onlypull/200/head
commit
bb309da2d3
|
@ -95,17 +95,26 @@ After building (it might take a while!), it should output a message in your term
|
||||||
If you copy/paste that URL into your browser you will see a Jupyter Notebook with the
|
If you copy/paste that URL into your browser you will see a Jupyter Notebook with the
|
||||||
contents of the repository you have just built!
|
contents of the repository you have just built!
|
||||||
|
|
||||||
Displaying the image Dockerfile
|
Debugging the build process
|
||||||
-------------------------------
|
---------------------------
|
||||||
|
|
||||||
``repo2docker`` will generate a Dockerfile that composes the created Docker image.
|
If you want to debug and understand the details of the docker image being built,
|
||||||
To see the contents of this Dockerfile without building the image use
|
you can pass the ``debug`` parameter to the commandline. This will print the
|
||||||
the ``--debug`` and ``--no-build`` flags like so::
|
generated ``Dockerfile`` before building and running it.
|
||||||
|
|
||||||
jupyter-repo2docker --debug --no-build https://github.com/jakevdp/PythonDataScienceHandbook
|
.. code-block:: bash
|
||||||
|
|
||||||
|
jupyter-repo2docker --debug https://github.com/jakevdp/PythonDataScienceHandbook
|
||||||
|
|
||||||
|
|
||||||
|
If you only want to see the ``Dockerfile`` output but not actually build it,
|
||||||
|
you can also pass ``--no-build`` to the commandline. This ``Dockerfile`` output
|
||||||
|
is for **debugging purposes** only - it can not be used by docker directly.
|
||||||
|
|
||||||
|
.. code-block:: bash
|
||||||
|
|
||||||
|
jupyter-repo2docker --no-build --debug https://github.com/jakevdp/PythonDataScienceHandbook
|
||||||
|
|
||||||
This will output the contents of the Dockerfile in your console. Note that it
|
|
||||||
will **not** build the image.
|
|
||||||
|
|
||||||
Accessing help from the command line
|
Accessing help from the command line
|
||||||
------------------------------------
|
------------------------------------
|
||||||
|
|
Ładowanie…
Reference in New Issue