Haoze Chang

Publications | Archive

docker basic

dokcer setup and usage

docker setup

follow docker installation guide

install cudatoolkit

follow cuda tool kit container

### basic lines

sudo docker run -v /data:/data -itd --gpus all --shm-size=2g (imagename) bash

-v:mounting a dir in the host

-it:-i:interaction -t:terminal

–gpus:using gpu

–shm-size=2g:set up 2g shm size

/bin/bash or bash:using bash

docker images:check all images docker pull:pull images docker commit:commit new imagess from container docker ps:check all container running docker ps -a:check all container docker start:start a new container docker attach:enter container docker stop:shutdown container exit:shutdwon and exit Ctrl+P+Q:shutdown and don’t exit

tmux usage

sudo apt-get install tmux

tmux new -s : create new session Ctrl + b : control mode Ctrl + b + d : out of current session tmux ls tmux a -t : get into tmux kill-session -t kill session new window : ctrl + b + c switch windows : Ctrl +b + n/p (next/previous)


Build with Jekyll and true minimal theme