docker容器设置内存等资源信息的问题

jymusic0663】 在 https://github.com/istoreos/istoreos/issues/1074 发布:
反馈bug/问题

docker容器设置内存等资源信息的问题

Q:是否用关键词搜索了issue? (使用 “x” 选择)

  • 没有类似的issue

2. 详细叙述

(1) 具体问题

  • istoreOS后台docker里,设置容器内存信息时,出现下面的错误提示,即表单的数值提交到后台,后台转换出错。表单时写的2147483648,但后台判断成了浮点类型的,写2g也无法识别

  • 出现频率:必现

(2) 路由器型号和固件版本

  • 设备型号:x86 Generic(x86迷你主机刷的istoreOS)
  • 固件版本:iStoreOS 22.03.5 2023102014
  • 内核版本:5.10.176
  • 浏览器:Edge浏览器

(3) 详细日志和/或截图

Containers: update d7abb...code:500 json: cannot unmarshal number 2147483648.0 into Go struct field UpdateConfig.Memory of type int64