2020-04-25 18:17:09 +00:00
|
|
|
## Builds
|
|
|
|
|
|
|
|
You can build it on your own, note it takes lots of time, be prepared.
|
2020-06-27 12:49:19 +00:00
|
|
|
|
2020-04-25 18:17:09 +00:00
|
|
|
```bash
|
|
|
|
git clone <git-repository>
|
2020-06-27 12:49:19 +00:00
|
|
|
docker image build -t pytorch-lightning:latest -f docker/Dockerfile .
|
2020-04-25 18:17:09 +00:00
|
|
|
```
|
2020-06-27 12:49:19 +00:00
|
|
|
|
|
|
|
or with specific arguments
|
|
|
|
|
|
|
|
```bash
|
|
|
|
git clone <git-repository>
|
|
|
|
docker image build \
|
2020-07-04 15:31:12 +00:00
|
|
|
-t pytorch-lightning:py38 \
|
2020-06-27 12:49:19 +00:00
|
|
|
-f docker/Dockerfile \
|
2020-07-04 15:31:12 +00:00
|
|
|
--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:
|
|
|
|
|
2020-04-25 18:17:09 +00:00
|
|
|
```bash
|
|
|
|
docker image list
|
2020-06-27 12:49:19 +00:00
|
|
|
docker image rm pytorch-lightning:latest
|
2020-04-25 18:17:09 +00:00
|
|
|
```
|