- 把image存为文件,用于传输:
- docker save -o xxx.tar image_name
- 把文件导出成image:
- docker load -i xxx.tar
- 启动带gpu的image:
- docker run -it --rm --gpus all image_name /bin/bash
- mount:
- docker run -it --rm --gpus all --mount type=bind,src=/data/chamo/line_net,dst=/workspace pytorch/pytorch /bin/bash
- 提交
- docker commit containerxxx imagexxxx
- 起始目录,分离模式
-
docker run -d --rm --mount type=bind,source=/root/web_map,dst=/workspace -w /workspace -p 8000:8000 c_py_ros_cv /bin/bash start.sh
-
docker常用指令
最新推荐文章于 2025-02-22 17:56:18 发布
1400

被折叠的 条评论
为什么被折叠?



