随笔分类 -  Docker

Docker 容器相关
摘要:错误信息:服务器和客户端上指示的 HTTPS 之间不匹配。这可能导致 phpMyAdmin 无法正常工作或存在安全风险。请修复您的服务器配置以正确指示 HTTPS。 解决方法:在容器运行参数中,增加环境变量“–e PMA_ABSOLUTE_URI=https://具体地址/”即可。 参考自:http 阅读全文
posted @ 2021-05-07 18:29 不是豆豆 阅读(1447) 评论(0) 推荐(0) 编辑
摘要:参考:https://github.com/microsoft/msphpsql/issues/1112#issuecomment-643522139 在使用新的系统镜像(似乎是 ubuntu:20.04 及以后的版本)运行 sqlcmd 连接低版本数据库(如 SQL Server 2008 R2) 阅读全文
posted @ 2021-04-28 13:11 不是豆豆 阅读(6458) 评论(0) 推荐(0) 编辑
摘要:唔,官方版本的 mssql-tools 镜像好像好久没更新了(https://hub.docker.com/_/microsoft-mssql-tools),用起来有一些bug,在此根据官方 Dockerfile 修改生成最新版本的镜像: # SQL Server Command Line Tool 阅读全文
posted @ 2021-04-23 19:24 不是豆豆 阅读(568) 评论(0) 推荐(0) 编辑
摘要:参考:https://www.cnblogs.com/shijf/p/10386193.html https://www.cnblogs.com/myfqm/p/13086125.html https://www.cnblogs.com/zhuochong/p/10070516.html 5、通过 阅读全文
posted @ 2021-02-26 01:05 不是豆豆 阅读(1323) 评论(0) 推荐(0) 编辑
摘要:报告直接给出了整改方法的链接,如下: https://github.com/google/cadvisor/issues/784 ① 里面提到一个是可以直接写一个 dockerfile 然后在初始化镜像时将 http 基本身份验证写入配置到容器,如下: 注意修改 USERNAME 和 PASSWOR 阅读全文
posted @ 2021-01-27 16:44 不是豆豆 阅读(340) 评论(0) 推荐(0) 编辑
摘要:错误信息:A connection was successfully established with the server, but then an error occurred during the pre-login handshake. (provider: TCP Provider, er 阅读全文
posted @ 2021-01-13 00:36 不是豆豆 阅读(1151) 评论(0) 推荐(1) 编辑
摘要:错误信息大概是:Job for docker.service failed because the control process exited with error code 这里没有任何详细的错误信息,所以首先找到详细的错误信息,通过命令: sudo dockerd –debug 参考:http 阅读全文
posted @ 2021-01-13 00:27 不是豆豆 阅读(2278) 评论(0) 推荐(0) 编辑
摘要:转自:https://blog.csdn.net/liuzhang6966/article/details/89532061 ctop 项目地址:https://github.com/bcicen/ctop/ 安装方法: 1、按官方给出的脚本: 2、国内网络下载 github 可能有点费劲,也可以先 阅读全文
posted @ 2020-11-19 14:09 不是豆豆 阅读(1023) 评论(1) 推荐(0) 编辑
摘要:1、使用 docker-compose 快速搭建,脚本下载:https://github.com/apache/skywalking/tree/master/docker 2、可自行修改脚本,如下,使用桥接网络以不占用公开的 elasticsearch 端口、去掉了固定的容器命名可以指定命名、增加了 阅读全文
posted @ 2020-10-16 16:12 不是豆豆 阅读(568) 评论(0) 推荐(1) 编辑
摘要:转自:https://www.cnblogs.com/mr-wuxiansheng/p/11412489.html 命令格式: $ docker logs [OPTIONS] CONTAINER Options: --details 显示更多的信息 -f, --follow 跟踪实时日志 --since string 显示自某个... 阅读全文
posted @ 2020-09-15 17:53 不是豆豆 阅读(15932) 评论(0) 推荐(0) 编辑
摘要:可能为了保证数据库运行稳定,sqlserver 限制了运行机器的最小内存,网上有相关的文章提到可以修改此限制,但是也要根据实际情况来决定是否真的要在小内存服务器中跑哦~ 参考:https://blog.csdn.net/weixin_42183854/article/details/105173806 https://www.cnblogs.com/johnwii/p/8525490.html h... 阅读全文
posted @ 2020-08-27 18:29 不是豆豆 阅读(2849) 评论(0) 推荐(0) 编辑
摘要:目前官方安装脚本已经添加了 阿里云 和 国内的 Azure 作为镜像源选择,可以尝试使用(未测试): # 官方脚本 - 使用阿里云源 curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun # 官方脚本 - 使用 Azur 阅读全文
posted @ 2020-08-27 14:46 不是豆豆 阅读(352) 评论(0) 推荐(0) 编辑
摘要:项目地址:https://github.com/google/cadvisor 常用命令记录(CentOS, Fedora, and RHEL): sudo docker run \ --volume=/:/rootfs:ro \ --volume=/var/run:/var/run:ro \ -- 阅读全文
posted @ 2020-08-27 13:35 不是豆豆 阅读(546) 评论(0) 推荐(0) 编辑
摘要:今天碰到一个 docker 私有仓库的一个坑,本来私有仓库的搭建没有使用 https,然后需要在使用的 docker 的 daemon.json 配置文件的 insecure-registries 配置中添加地址,但似乎这个配置只是一个白名单,是在声明可以从这个地址获取仓库,但并不是优先会从这个地址获取,仍然会优先读取 https 地址的内容,如果 https 有响应内容,无论正确与否,都会优先使... 阅读全文
posted @ 2020-03-18 10:09 不是豆豆 阅读(3424) 评论(0) 推荐(0) 编辑
摘要:批量部署了一批容器,发现容器内报错: The configured user limit (128) on the number of inotify instances has been reached. 百度了一下可以调整系统配置: sysctl fs.inotify.max_user_instances=1024 转自: https://blog.csdn.net/villare/artic... 阅读全文
posted @ 2020-03-16 19:14 不是豆豆 阅读(2969) 评论(0) 推荐(0) 编辑
摘要:配置文档: https://docs.docker.com/registry/configuration/ 配置文件默认在容器内: /etc/docker/registry/config.yml 可通过修改配置,启用删除功能(https://docs.docker.com/registry/conf 阅读全文
posted @ 2020-02-26 12:53 不是豆豆 阅读(914) 评论(0) 推荐(0) 编辑
摘要:首先记录几个对 linux 系统服务操作的命令(以下都是对防火墙服务进行操作): # 启动服务systemctl start firewalld # 设置服务自启动systemctl enable firewalld # 取消服务自启动systemctl disable firewalld # 停止 阅读全文
posted @ 2020-02-15 00:37 不是豆豆 阅读(10998) 评论(0) 推荐(1) 编辑
摘要:增加一个 LANG=C.UTF-8 环境变量 docker exec -it mysql env LANG=C.UTF-8 /bin/bash 参考:https://blog.csdn.net/ye_guoyun/article/details/97311313 阅读全文
posted @ 2020-02-15 00:19 不是豆豆 阅读(1221) 评论(0) 推荐(0) 编辑
摘要:更新:原作者似乎已将该仓库存档只读不再更新维护了,但用还是可以用,根据情况使用吧 虽然还有部分第三方提供了镜像源,但最稳定的方法还是自己想办法要么本机可以去到外面上网直接拉取,或者在外面的机器上完再 push 回到自己的私有镜像站中 项目地址:https://github.com/zhangguan 阅读全文
posted @ 2020-02-15 00:11 不是豆豆 阅读(365) 评论(0) 推荐(0) 编辑
摘要:导出镜像: docker save -o cadvisor.v0.39.3.tar gcr.io/cadvisor/cadvisor:v0.39.3 导入镜像: docker load -i cadvisor.v0.39.3.tar 更多参考:https://blog.csdn.net/ncdx11 阅读全文
posted @ 2020-02-12 00:16 不是豆豆 阅读(829) 评论(0) 推荐(0) 编辑

友情链接:迷途


点击右上角即可分享
微信分享提示