docker中遇到的坑
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
------------重点分割线,掉坑是我进步的动力,有时候真的情愿不进步也不想掉坑啊啊啊啊-------------------------------------------
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
问题1,update终止
1、在安装vim的时候需要先执行
apt-get update
但是在执行update的时候执行到23步之后无法执行下去,可能是由于第一次在执行到23的时候出现断网,然后使用ctrl+C打断了跟新,反正之后就一直断在这一步。
下载一个新的镜像后在新的镜像里面执行成功
docker pull ufoym/deepo:cpu
推测删除后重新下载可以改变这个状态,删除已有镜像
参考:https://blog.csdn.net/winy_lm/article/details/77980529
https://blog.csdn.net/jeikerxiao/article/details/78476925
删除镜像bvlc/caffe的时候报错,提示有子镜像没有删除,所以先删除子镜像caffe-mnist
删除子镜像的被容器使用
查看后发现caffe-mnist有很多容器,一个一个删除太麻烦了,所以就干脆全部一起删除
先停止全部容器,然后删除全部容器,查看确认容器删除
成功删除两个caffe的镜像
然而,重新下载caffe镜像之后,人就update失败
emmmmm
所以,那就,换一个镜像吧~~~
所以,那就,直接复制出来改好了再传回去吧~~~~
2、推荐镜像
地址:https://github.com/ufoym/deepo
里面提供了一个叫做deepo的镜像,在镜像里面已经安装了包括caffe,caffe2,tensoflow,torch等等深度学习框架。有cpu和gpu版本。
docker pull ufoym/deepo
gpu版本的下载
3、推荐教程
地址:https://zhuanlan.zhihu.com/p/63426143
这是一个使用deepo的cpu镜像实现ssh链接,然后通过ssh将容器编辑器链接Pycharm的教程。
在之前掉过一个坑,如果直接使用镜像链接Pycharm的话,可能只能将镜像中的python包导入到Pycharm里面去,但是比如caffe这种需要在环境中编译得到的就没法加载,所以需要将镜像的容器里面的python解释器导入到Pycharm里面,这个时候就需要使用ssh来链接了。
4、错误:
docker: Error response from daemon: OCI runtime create failed: container_linux.go:345: starting container process caused "exec: \"/bash\": stat /bash: no such file or directory": unknown.
解决:
可能是下载过程中出现错误,重新执行docker pull ubuntu,在执行docker run -i -t ubuntu /bin/bash就OK了。
解决方法来源:
https://blog.csdn.net/weixin_43201726/article/details/82789002
5、make all 过程中错误,关键字"__shfl_down"
NVCC src/caffe/3rdparty/reduce.cu
nvcc warning : The 'compute_20', 'sm_20', and 'sm_21' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).
nvcc warning : The 'compute_20', 'sm_20', and 'sm_21' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).
src/caffe/3rdparty/reduce.cu(44): error: identifier "__shfl_down" is undefineddetected during:instantiation of "T CTAReduce<NT, T, Rop>::reduce(int, T, CTAReduce<NT, T, Rop>::Storage &, int, Rop) [with NT=128, T=float, Rop=ctc_helper::add<float, float>]"
(76): hereinstantiation of "void reduce_rows<NT,Iop,Rop,T>(Iop, Rop, const T *, T *, int, int) [with NT=128, Iop=ctc_helper::negate<float, float>, Rop=ctc_helper::add<float, float>, T=float]"
(124): hereinstantiation of "void ReduceHelper::impl(Iof, Rof, const T *, T *, int, int, __nv_bool, cudaStream_t) [with T=float, Iof=ctc_helper::negate<float, float>, Rof=ctc_helper::add<float, float>]"
(139): hereinstantiation of "ctcStatus_t reduce(Iof, Rof, const T *, T *, int, int, __nv_bool, cudaStream_t) [with T=float, Iof=ctc_helper::negate<float, float>, Rof=ctc_helper::add<float, float>]"
(149): heresrc/caffe/3rdparty/reduce.cu(44): error: identifier "__shfl_down" is undefineddetected during:instantiation of "T CTAReduce<NT, T, Rop>::reduce(int, T, CTAReduce<NT, T, Rop>::Storage &, int, Rop) [with NT=128, T=float, Rop=ctc_helper::maximum<float, float>]"
(76): hereinstantiation of "void reduce_rows<NT,Iop,Rop,T>(Iop, Rop, const T *, T *, int, int) [with NT=128, Iop=ctc_helper::identity<float, float>, Rop=ctc_helper::maximum<float, float>, T=float]"
(124): hereinstantiation of "void ReduceHelper::impl(Iof, Rof, const T *, T *, int, int, __nv_bool, cudaStream_t) [with T=float, Iof=ctc_helper::identity<float, float>, Rof=ctc_helper::maximum<float, float>]"
(139): hereinstantiation of "ctcStatus_t reduce(Iof, Rof, const T *, T *, int, int, __nv_bool, cudaStream_t) [with T=float, Iof=ctc_helper::identity<float, float>, Rof=ctc_helper::maximum<float, float>]"
(157): here2 errors detected in the compilation of "/tmp/tmpxft_00000e20_00000000-14_reduce.compute_20.cpp1.ii".
Makefile:594: recipe for target '.build_release/cuda/src/caffe/3rdparty/reduce.o' failed
make: *** [.build_release/cuda/src/caffe/3rdparty/reduce.o] Error 1ce.o' failí
解决方法参考https://github.com/xmfbit/warpctc-caffe/issues/1
修改如下,上面被#注释的是原来的,下面没有注释的是新的,直接删除了sm_20和sm_21两行
#CUDA_ARCH := -gencode arch=compute_20,code=sm_20 \
# -gencode arch=compute_20,code=sm_21 \
# -gencode arch=compute_30,code=sm_30 \
# -gencode arch=compute_35,code=sm_35 \
# -gencode arch=compute_50,code=sm_50 \
# -gencode arch=compute_50,code=compute_50CUDA_ARCH := -gencode arch=compute_30,code=sm_30 \-gencode arch=compute_35,code=sm_35 \-gencode arch=compute_50,code=sm_50 \-gencode arch=compute_50,code=compute_50Z×ÓU?¥
docker中遇到的坑相关推荐
- 使用docker中容器的坑
1.先使用 docker ps -a 查看容器中id等信息,然后记住其中的id(就是最前面的一串码),再通过 docker start 容器id 启动后才能进入容器 docker exec -it m ...
- docker脚本安装 阿里云_让运行在 Docker 中的 Ghost 支持阿里云 OSS
本文使用「署名 4.0 国际 (CC BY 4.0)」许可协议,欢迎转载.或重新修改使用,但需要注明来源. 署名 4.0 国际 (CC BY 4.0) 本文作者: 苏洋 创建时间: 2020年03月1 ...
- poi报空指针_POI 导出文件 报空指针异常 --Docker 中
爬坑系列----Redis查询key报空指针异常,而redis中确实存在该key 现象: 1.在A方法中根据key查询一个list,可以获取到相应的值 2.在B方法中同样调用此方法,传入相同的key, ...
- Docker中安装Jenkins实时发布.net core 项目(二)
Docker中安装Jenkins实时发布.net core 项目 防坑点 升级docker jenkins运行 运行命令 jenkins拉取git并构建项目 其他 查看发布文件 防坑点 升级docke ...
- docker中的hassio升级_趣说Docker
关于 Docker 是什么,有个著名的隐喻:集装箱.但是它却起了个"码头工人"(docker 的英文翻译)的名字. 这无疑给使用者很多暗示:"快来用吧!用了 Docker ...
- 阿里云天池【Docker练习场】踩坑指南
阿里云天池[Docker练习场]踩坑指南 题目直达 提交环境搭建(基于macOS) Docker的安装与基本功能使用 Docker安装过程遇到的小问题 提交结果注意事项 提交时的镜像配置 项目结构规范 ...
- 给Docker中的Nginx搭建HTTPS环境
随着苹果和微信小程序强制使用HTTPS协议传输,越来越多的公司和企业开始使用HTTPS.下面我来分享下给Docker容器中的Nginx搭建HTTPS环境 什么是HTTPS 超文本传输安全协议(英语:H ...
- docker 网络相关与坑
docker的网络 我们在使用docker run创建Docker容器时,可以用–network标志 选项指定容器的网络模式,Docker有以下4种网络模式: host模式:使用 --net=host ...
- 使用Docker时遇到的坑与解决方法
使用Docker时遇到的坑与解决方法 1. Docker 服务启动串台 使用 docker-compose 命令各自启动两组服务,发现服务会串台! [问题起因] 在两个不同名称的目录目录下面,使用 d ...
最新文章
- PDF编辑软件Nitro PDF Professional 6
- Redis的API调用工具类
- 编译glib-1.2.20-r5出错./libtool: line 297
- 10组第一次作业-现代软件工程2017成员介绍
- iphone开发之轻松搞定原生socket 编程,阻塞与非阻塞,收发自如
- centos安装Hue 3.7.0
- 中国式创新技术“步态识别”终于来临,你大胆地走两步,我就知道你是谁
- java方法示例注释 @_Java注释和真实世界的Spring示例
- 虚拟云服务器有哪些,虚拟云主机和服务器有什么区别
- 和为s的两个数字 - 双指针
- flash 音乐 html代码,用html为flash页面添加音乐
- 抖音txt表白html,抖音vbs表白代码的技巧分享
- Android Studio Gradle build daemon disappeared unexpectedly
- linux就是这个范儿之特种文件系统(1)
- [存档]Martin Fowler在UMLChina交流实录
- 安卓蓝牙USB连接热敏打印机一
- 用MATLAB将bilibili缓存视频批量转换成MP4的方法
- 51单片机波特率计算工具介绍
- 带你看数据结构都学什么
- 如何策划一个流量分发类的产品