V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
lisonfan
V2EX  ›  Docker

CentOS 8 Docker 的警告求助

  •  
  •   lisonfan · 2020-12-30 11:33:14 +08:00 · 1958 次点击
    这是一个创建于 1415 天前的主题,其中的信息可能已经有所发展或是发生改变。

    这两个警告怎么处理呢?

    WARNING: No blkio weight support
    WARNING: No blkio weight_device support
    

    Google 搜了半天没搜到

    docker info

    Client:
     Context:    default
     Debug Mode: false
     Plugins:
      app: Docker App (Docker Inc., v0.9.1-beta3)
      buildx: Build with BuildKit (Docker Inc., v0.5.0-docker)
    
    Server:
     Containers: 5
      Running: 5
      Paused: 0
      Stopped: 0
     Images: 5
     Server Version: 20.10.1
     Storage Driver: overlay2
      Backing Filesystem: xfs
      Supports d_type: true
      Native Overlay Diff: true
     Logging Driver: json-file
     Cgroup Driver: cgroupfs
     Cgroup Version: 1
     Plugins:
      Volume: local
      Network: bridge host ipvlan macvlan null overlay
      Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
     Swarm: inactive
     Runtimes: io.containerd.runtime.v1.linux runc io.containerd.runc.v2
     Default Runtime: runc
     Init Binary: docker-init
     containerd version: 269548fa27e0089a8b8278fc4fc781d7f65a939b
     runc version: ff819c7e9184c13b7c2607fe6c30ae19403a7aff
     init version: de40ad0
     Security Options:
      seccomp
       Profile: default
      userns
     Kernel Version: 4.18.0-240.1.1.el8_3.x86_64
     Operating System: CentOS Linux 8
     OSType: linux
     Architecture: x86_64
     CPUs: 8
     Total Memory: 7.559GiB
     Name: V-app-push2021
     ID: UXSD:UFLJ:JJTA:RFIC:PMCO:IPA2:MDZB:6NXD:2IGP:OZFK:5WEJ:2HPH
     Docker Root Dir: /data/lib/docker/1000.1000
     Debug Mode: false
     Registry: https://index.docker.io/v1/
     Labels:
     Experimental: false
     Insecure Registries:
      127.0.0.0/8
     Registry Mirrors:
      https://hub-mirror.c.163.com/
      https://dockerhub.azk8s.cn/
     Live Restore Enabled: false
    
    WARNING: No blkio weight support
    WARNING: No blkio weight_device support
    
    第 1 条附言  ·  2020-12-30 12:14:38 +08:00

    docker version

    Client: Docker Engine - Community
     Version:           20.10.1
     API version:       1.41
     Go version:        go1.13.15
     Git commit:        831ebea
     Built:             Tue Dec 15 04:34:30 2020
     OS/Arch:           linux/amd64
     Context:           default
     Experimental:      true
    
    Server: Docker Engine - Community
     Engine:
      Version:          20.10.1
      API version:      1.41 (minimum version 1.12)
      Go version:       go1.13.15
      Git commit:       f001486
      Built:            Tue Dec 15 04:32:21 2020
      OS/Arch:          linux/amd64
      Experimental:     false
     containerd:
      Version:          1.4.3
      GitCommit:        269548fa27e0089a8b8278fc4fc781d7f65a939b
     runc:
      Version:          1.0.0-rc92
      GitCommit:        ff819c7e9184c13b7c2607fe6c30ae19403a7aff
     docker-init:
      Version:          0.19.0
      GitCommit:        de40ad0
    
    1 条回复    2021-01-21 16:57:14 +08:00
    ward56
        1
    ward56  
       2021-01-21 16:57:14 +08:00   ❤️ 1
    这只是一个警告,一般我是忽略的,没什么影响。

    这个警告是系统 IO 调度算法不兼容问题,下面参数针对特殊设备加权控制,也可以在 redhat 的 blkio 看到详细。
    运行容器时加上即可。
    –blkio-weight (一般 10-100 ) 前提你要开启 cfq,或者直接改调度算法。

    推荐先看下 centos 的 io 调度算法。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   4459 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 04:06 · PVG 12:06 · LAX 20:06 · JFK 23:06
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.