Docker

Docker volume 할당하여 실행

scone 2023. 3. 13. 22:13

https://0902.tistory.com/6

https://www.daleseo.com/docker-volumes-bind-mounts/ 

https://maru1000.tistory.com/34

https://eungbean.github.io/2018/12/03/til-docker-commit/

https://oboki.net/workspace/system/docker/%EC%BB%A8%ED%85%8C%EC%9D%B4%EB%84%88%EC%97%90-shell-%ED%99%98%EA%B2%BD%EC%9C%BC%EB%A1%9C-%EC%A0%91%EA%B7%BC%ED%95%98%EA%B8%B0/

 

이미지 : https://hub.docker.com/search?q=kimjungtaek

  • kimjungtaek/ubuntu20.04-git-python3.8-cuda11.2
    • ubuntu20.04
    • git 설치
    • python 3.8.10
    • cuda 11.2
  • kimjungtaek/nia-base-torch1.12.1
    • ubuntu20.04
    • git 설치
    • python 3.8.10
    • cuda 11.2
    • torch1.12.1
docker run --volume [local volume address]:[docker volume address] -it --name [container name] --gpus all [docker image name] bash

 

ex)

sudo docker run --volume .:/home/data -it --name test-cuda --gpus all nia_maskrcnn bash