docker 常用命令

令狐翰
2023-12-01

cheatsheet

复制到container (不用区分文件还是文件夹)

docker cp 文件路径 container_id:目录路径

Login

docker login -u user -p passwd

Pull

docker pull image:tag

Push(push之前要先登录login)

docker push image/tag

Run

docker run -it --pid=host --gpus all --mount type=bind,src=/y/,dst=/y/ gnina/gnina

Useful command

CommandDescrtiption
dockerps
docker ps -a
docker start
docker stop
docker images
docker version
docker create
docker rename
docker rm
docker update
 类似资料: