repo2docker/docs/source/faq.md

33 wiersze
1.3 KiB
Markdown
Czysty Zwykły widok Historia

# Frequently Asked Questions (FAQ)
A collection of frequently asked questions with answers!
If you have a question & have found an answer, send a PR to add it here!
2017-12-07 18:50:46 +00:00
## How should I specify another version of Python 3?
2017-12-08 19:53:15 +00:00
Currently the best way to do this is by using a conda ``environment.yml``
2017-12-07 18:50:46 +00:00
file and setting the language to whichever version of Python you like.
## Can I use repo2docker to bootstrap my own Dockerfile?
2017-10-24 23:09:09 +00:00
No, you can't.
If you pass the `--debug` flag to `repo2docker`, it outputs the intermediate
2017-10-24 23:09:09 +00:00
Dockerfile that is used to build the docker image. While it is tempting to copy
this as a base for your own Dockerfile, that is not supported & in most cases
will not work. The `--debug` output is just our intermediate generated
Dockerfile, and is meant to be built in
[a very specific way](https://github.com/jupyter/repo2docker/blob/master/repo2docker/detectors.py#L381).
Hence the output of `--debug` can not be built with a normal `docker build -t .`
or similar traditional docker command.
Check out the [binder-examples](http://github.com/binder-examples/) github
organization for example Dockerfiles you can copy & modify for your own use!
2018-04-09 19:18:36 +00:00
## How do I set environment variables?
Use the `-e` or `--env` flag for each variable that you want to define.
For example `jupyter-repo2docker -e VAR1=val1 -e VAR2=val2 ...`