lightning/dockers/README.md

34 lines
663 B
Markdown
Raw Normal View History

## Builds
You can build it on your own, note it takes lots of time, be prepared.
2020-06-27 12:49:19 +00:00
```bash
git clone <git-repository>
docker image build -t pytorch-lightning:latest -f dockers/conda/Dockerfile .
```
2020-06-27 12:49:19 +00:00
or with specific arguments
```bash
git clone <git-repository>
docker image build \
-t pytorch-lightning:py3.8 \
-f dockers/conda/Dockerfile \
--build-arg PYTHON_VERSION=3.8 \
--build-arg PYTORCH_VERSION=1.4 \
2020-06-27 12:49:19 +00:00
.
```
To run your docker use
```bash
docker image list
docker run --rm -it pytorch-lightning:latest bash
```
and if you do not need it anymore, just clean it:
```bash
docker image list
2020-06-27 12:49:19 +00:00
docker image rm pytorch-lightning:latest
```