码农知识堂 - 1000bd
  •   Python
  •   PHP
  •   JS/TS
  •   JAVA
  •   C/C++
  •   C#
  •   GO
  •   Kotlin
  •   Swift
  • docker启动容器报错


    docker启动容器故障1

    背景
    系统:rocky9.2
    容器引擎:docker 24

    启动容器报错
    docker logs 容器名称

    library initialization failed - unable to allocate file descriptor table - out of memorylibrary initialization failed - unable to allocate file descriptor table - out of memorylibrary initialization failed - unable to allocate file descriptor table - out of memory

    解决方法:
    容器启动配置ulimit,具体配置如下

      servicename:
        ...
        ulimits:
          nofile:
            soft: "65535"
            hard: "65535"
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6

    docker启动容器故障2

    背景
    系统:rocky9.2
    容器引擎:docker 24

    故障描述:
    docker运行cadvisor镜像时报错

    1 cadvisor.go:146] Failed to create a Container Manager: mountpoint for cpu not found

    解决:
    下载最新镜像 gcr.io/cadvisor/cadvisor:latest

    docker-compose配置

      servicename:
        ...
        image: gcr.io/cadvisor/cadvisor:latest
        devices:
          - "/dev/kmsg:/dev/kmsg"
        ...
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6

    参考: https://github.com/google/cadvisor/issues/1943

    docker 拉取镜像报错1

    Error response from daemon: toomanyrequests: You have reached your pull rate limit. You may increase the limit by authenticating and upgrading: https://www.docker.com/increase-rate-limit

    原因:
    DockerHub 从 2020 年 11 月 2 日,正式开始限制非付费用户的拉取频率:
    匿名用户,每 6 小时只允许 pull 100 次
    已登录用户,每 6 小时只允许 pull 200 次

    解决办法:更换镜像配置、绕过限制
    Azure: https://dockerhub.azk8s.cn
    中科大: https://ustc-edu-cn.mirror.aliyuncs.com
    网易: https://hub-mirror.c.163.com

    vim /etc/docker/daemon.json

    {
      "registry-mirrors": ["https://ustc-edu-cn.mirror.aliyuncs.com"]
    }
    
    • 1
    • 2
    • 3

    重启服务

    systemctl restart docker
    
    • 1
  • 相关阅读:
    idea中maven plugin提示not found
    Linux网络编程—Day11 高性能服务器程序框架
    【量化交易笔记】12.海龟交易策略
    【刷题之路 | Java & Python】两数之和(暴力枚举&哈希表)
    【Linux】05.部署Microsoft SQL Server
    KyLin离线安装OceanBase
    AndroidStudio连接真机测试运行
    B+树的插入、删除和分裂,注意国内教材和国外的对于B+树的定义的不同
    如何通过Java代码在Word中创建可填充表单
    41-数组 _ 数组作为函数参数
  • 原文地址:https://blog.csdn.net/wuxingge/article/details/133071181
  • 最新文章
  • 攻防演习之三天拿下官网站群
    数据安全治理学习——前期安全规划和安全管理体系建设
    企业安全 | 企业内一次钓鱼演练准备过程
    内网渗透测试 | Kerberos协议及其部分攻击手法
    0day的产生 | 不懂代码的"代码审计"
    安装scrcpy-client模块av模块异常,环境问题解决方案
    leetcode hot100【LeetCode 279. 完全平方数】java实现
    OpenWrt下安装Mosquitto
    AnatoMask论文汇总
    【AI日记】24.11.01 LangChain、openai api和github copilot
  • 热门文章
  • 十款代码表白小特效 一个比一个浪漫 赶紧收藏起来吧!!!
    奉劝各位学弟学妹们,该打造你的技术影响力了!
    五年了,我在 CSDN 的两个一百万。
    Java俄罗斯方块,老程序员花了一个周末,连接中学年代!
    面试官都震惊,你这网络基础可以啊!
    你真的会用百度吗?我不信 — 那些不为人知的搜索引擎语法
    心情不好的时候,用 Python 画棵樱花树送给自己吧
    通宵一晚做出来的一款类似CS的第一人称射击游戏Demo!原来做游戏也不是很难,连憨憨学妹都学会了!
    13 万字 C 语言从入门到精通保姆级教程2021 年版
    10行代码集2000张美女图,Python爬虫120例,再上征途
Copyright © 2022 侵权请联系2656653265@qq.com    京ICP备2022015340号-1
正则表达式工具 cron表达式工具 密码生成工具

京公网安备 11010502049817号