摘要: 一、将已有容器打包为新的镜像 1、docker commit 容器ID 新的镜像的名字 2、docker save -o ./新的镜像的名字tar 新的镜像的名字 3、从tar包载入镜像:docker load -i 新的镜像的名字.tar 4、docker images | grep 新的镜像的名 阅读全文
posted @ 2022-07-07 16:40 我爱吃火锅,最爱吃鱼 阅读(460) 评论(0) 推荐(0)
摘要: 1、跨服务器复制文件 scp -r 当前服务器文件夹所在路径 @IP:远程服务器文件夹路径 2、后台运行程序 nohup python3 XXX.py >> XXX.log 2>&1& 3、服务器资源占用情况 watch -n 1 nvidia-smi free top ps aux 4、写入环境变 阅读全文
posted @ 2022-07-07 16:22 我爱吃火锅,最爱吃鱼 阅读(20) 评论(0) 推荐(0)