dockerhub :
Docker Hub
conda下载:
Index of /anaconda/archive/ | 清华大学开源软件镜像站 | Tsinghua Open Source Mirror
apt-get update
apt-get install vim
apt-get install -y libsm6 libxext6 libxrender-dev libglib2.0-0
apt install libgl1-mesa-glx
pip install opencv-python
pip install tensorboard
opencv-python离线
Links for opencv-python
sudo docker system df -v
sudo docker run --name yolop_0906 -it --gpus all -v /data/jun.gu/share:/share --shm-size 64G gujun_ti_jacinto_ubuntu18.04_v01 /bin/bash
docker images
docker pull pytorch/pytorch:1.8.0-cuda11.1-cudnn8-devel
docker exec -it 243c32535da7 /bin/bash
service docker restart
sudo docker ps -a
sudo docker cp 25_task_ped_head_det_0416_1_j2.zip laughing_perlman:/root
sudo docker cp 7cb215f83ecc:/root/gluon-cv-master/scripts/gan/cycle_gan/samples ./
docker run -it -v /home/haha/下载:/share microsoft/dotnet:latest /bin/bash
sudo docker tag b430fb8309ca gujun_ti_jacinto_ubuntu18.04_v02
sudo docker rename hardcore_brahmagupta gujun_mxnet_base
pass
sudo docker commit d46d1bb618ae gujun_ti_jacinto_ubuntu18.04_image
docker save -o mxnet.tar 10.79.133.33:8111/cab-test/mxnet-horizon-docker:v300
docker load -i mxnet.tar
load 作用:导入使用 docker save 命令导出的镜像 1. #docker load -i 镜像文件地址 2. 例:现在有一个叫mxnet.tar的镜像归档文件,需要将其导入本地镜像 3. --> docker load -i mxnet.tar
sudo docker tag 7d54cb0cd975 gujun_ti_jacinto_mmdet_ubuntu18.04_v2.1
docker容器的ubuntu系统中设置apt-get代理和apt-get源 - reblue520 - 博客园
复制原文件备份
mv /etc/apt/sources.list /etc/apt/sources.list.bak
修改sources.list
安装vim命令
apt install vim
还原sources.list文件
mv /etc/apt/sources.list.bak /etc/apt/sources.list
Dataloader中的num_workers设置与docker的shared memory相关问题_陆三斤的博客-CSDN博客
Docker容器跨主机通信之:直接路由方式 - 肖祥 - 博客园
Docker跨主机通信 - 知乎
停止容器:
docker stop id
更新配额:
docker update -m 32G --memory-swap -1 id
内存参数和大小 容器ID
重启容器:
docker start id
删除镜像
sudo docker rmi imageid
删除容器
sudo docker rm {id}
安装nvidia-container-toolkit:
sudo apt install -y nvidia-container-toolkit
重启docker:
systemctl restart docker