This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> docker login --username kushaj | |
> docker tag test:0.1 kushaj/pytorch:1.9.0 | |
> docker push kushaj/pytorch:1.9.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> docker login --username {USERNAME} | |
> docker tag <REPOSITORY>:<TAG> {USERNAME}/<REPOSITORY>:<TAG> | |
> docker push {USERNAME}/<REPOSITORY>:<TAG> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> docker container ls -a | |
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES | |
d5367ac6cf01 test:0.2 "bash" 3 seconds ago Up 2 seconds temp_2 | |
20ebc6bca143 test:0.2 "bash" 5 minutes ago Exited (0) 5 minutes ago temp_1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker image ls | |
> REPOSITORY TAG IMAGE ID CREATED SIZE | |
test 0.1 e3a710895926 20 hours ago 10.8GB | |
test latest 9419a081213b 5 days ago 63.1MB | |
<none> <none> 4734a6f5567e 5 days ago 63.1MB | |
<none> <none> 7deb7fdc3b5e 5 days ago 63.1MB | |
> docker image prune | |
WARNING! This will remove all dangling images. | |
Are you sure you want to continue? [y/N] y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> docker image rm 16379d98ded4 | |
Deleted: sha256:16379d98ded4a6a90d02f8709ca27ba4c9abe750ba948b5de9096607599e8ce0 | |
> docker image rm test:0.3 | |
Untagged: test:0.3 | |
Deleted: sha256:fdc3055dbe5f7239a4371f5abb6da4fdced836ff6278b19a2d70a8b654a85d04 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> docker image ls | |
REPOSITORY TAG IMAGE ID CREATED SIZE | |
test 0.1 e3a710895926 19 hours ago 7.47GB | |
ubuntu 18.04 5a214d77f5d7 5 days ago 63.1MB |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> DOCKER_BUILDKIT=1 docker build \ | |
-t {REPOSITORY_1}:{TAG_1} -t {REPOSITORY_2}:{TAG_2} \ | |
-f /path/to/Dockerfile \ | |
/path/to/build/context |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(base) default@7d9b75595a27:~$ python | |
Python 3.9.7 (default, Sep 16 2021, 13:09:58) | |
[GCC 7.5.0] :: Anaconda, Inc. on linux | |
Type "help", "copyright", "credits" or "license" for more information. | |
>>> import torch | |
>>> torch.cuda.is_available() | |
True | |
>>> torch.backends.cudnn.version() | |
8005 | |
>>> x = torch.tensor([1,2], device='cuda:0') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
default@a7f862b6bf73:~$ nvidia-smi | |
Wed Oct 6 05:54:35 2021 | |
+-----------------------------------------------------------------------------+ | |
| NVIDIA-SMI 460.91.03 Driver Version: 460.91.03 CUDA Version: 11.2 | | |
|-------------------------------+----------------------+----------------------+ | |
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC | | |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. | | |
| | | MIG M. | | |
|===============================+======================+======================| | |
| 0 Quadro M1200 Off | 00000000:01:00.0 On | N/A | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RUN pip install numpy && \ | |
conda install pytorch torchvision cudatoolkit=11.1 -c pytorch -c nvidia |
NewerOlder