Skip to content

Latest commit

 

History

History
34 lines (26 loc) · 869 Bytes

README.md

File metadata and controls

34 lines (26 loc) · 869 Bytes

DockerFiles

include

  • git
  • tmux
  • sshd
  • neovimplus
  • zsh & oh-my-zsh
    • zsh-autosuggestions
    • zsh-syntax-highlighting
    • z
    • extractor
  • pyenv & python3.11

Build

docker build --build-arg USER_UID=$(id -u) -t cuda112:1.0 -f ./Dockerfile-cuda112 .
docker build --build-arg USER_UID=$(id -u) -t cuda123:1.0 -f ./Dockerfile-cuda123 .

如果到apt-get update卡住,可能是网络问题,可以使用host模式构建:

docker build --build-arg USER_UID=$(id -u) --network host -t cuda112:1.0 -f ./Dockerfile-cuda112 .
docker build --build-arg USER_UID=$(id -u) --network host -t cuda123:1.0 -f ./Dockerfile-cuda123 .

Run

docker run -it --shm-size=8G -P --privileged --runtime=nvidia -u $(id -u) --name "NAME" -v PATH_LOCAL:/home/ubuntu/PATH_DOCKER DOCKER_IMAGE /bin/zsh