[换成自己的源]
docker-machine ssh default
sed -i "s|EXTRA_ARGS='|EXTRA_ARGS='--registry-mirror=https://2w188x2k.mirror.aliyuncs.com|g" /var/lib/boot2docker/profile
exit
docker-machine restart default
[打开rknndocker]
docker run -t -i --privileged -v /dev/bus/usb:/dev/bus/usb rknn-toolkit:1.7.1 /bin/bash
--------------------------------------------------------在CMD中执行-------------------------------------------------------------------------
[登录]
docker login --username=21mikasa registry.cn-hangzhou.aliyuncs.com
[创建版本号]
docker tag [ImageId] registry.cn-hangzhou.aliyuncs.com/x21time/jsjsjds:[镜像版本号]
docker tag 50105e3a4110 registry.cn-hangzhou.aliyuncs.com/x21time/jsjsjds:0.1
[推送到云]
docker push registry.cn-hangzhou.aliyuncs.com/x21time/jsjsjds:[镜像版本号]
docker push registry.cn-hangzhou.aliyuncs.com/x21time/jsjsjds:0.1
[复制到本地]
docker cp f97b90199165:/examples/pytorch/yolov5 ./
标签:aliyuncs,cn,hangzhou,registry,docker,com,first From: https://www.cnblogs.com/x21time/p/17323526.html