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 14:29:50 +00:00
|
|
|
-t pytorch-lightning:py36 \
|
2020-06-27 12:49:19 +00:00
|
|
|
-f docker/Dockerfile \
|
2020-07-04 14:29:50 +00:00
|
|
|
--build-arg PYTHON_VERSION=3.6 \
|
|
|
|
--build-arg PYTORCH_VERSION=1.3 \
|
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
|
|
|
```
|