Memory limit should be smaller than already set memoryswap limit, update the memoryswap at the same
set The be update at memory already limit
2023-09-14 09:02:05 时间
1. 报错现象
报错信息:
Memory limit should be smaller than already set memoryswap limit,
update the memoryswap at the same time
当对容器执行docker update时发生报错
root@ubuntu20:~# docker update --memory 300m prod_v1
Error response from daemon: Cannot update container 3554652f8b3ce79bcacbb6042a249f9e7d10154d500eb2a2feb9baf91862b00d: Memory limit should be smaller than already set memoryswap limit, update the memoryswap at the same time
2. 解决方法1
docker update --memory 300m --memory-swap -1 prod_v1
3. 解决方法2
重建容器,在创建时指定–memory,之后再扩展就不会报错了
新建容器
docker run -it -d --name container4 --memory 256m nginx
扩展容器
docker update --memory 512m container4
相关文章
- Map和Set的区别「建议收藏」
- MySql常用函数(逻辑判断,字符串处理,日期函数)FIND_IN_SET、IF、ISNULL、IFNULL、NULLIF、SUBSTR、SUBSTRING_INDEX、CONCAT、LENGTH
- ORA-19660: some files in the backup set could not be verified ORACLE 报错 故障修复 远程处理
- ORA-26747: The one-to-many transformation function string encountered the following error: string ORACLE 报错 故障修复 远程处理
- ORA-27079: unable to set async IO limit ORACLE 报错 故障修复 远程处理
- ORA-30926: unable to get a stable set of rows in the source tables ORACLE 报错 故障修复 远程处理
- ORA-31692: The following SQL statement failed trying to insert a row into the Master table: string ORACLE 报错 故障修复 远程处理
- ORA-38407: The ADT associated with the attribute set already exists. ORACLE 报错 故障修复 远程处理
- ORA-38443: An attribute set should be assigned to the expression set for statistics collection. ORACLE 报错 故障修复 远程处理
- ORA-39819: The OCI_ATTR_DIRPATH_NO_INDEX_ERRORS attribute cannot be set to TRUE in direct path parallel loads. ORACLE 报错 故障修复 远程处理
- ORA-47407: ALWAYS AUDIT option set for Rule Set string ORACLE 报错 故障修复 远程处理
- ORA-48411: The trace files exceeds the maximum number [string] ORACLE 报错 故障修复 远程处理
- ORA-48464: The predicate buffer reached the maximum length [string] ORACLE 报错 故障修复 远程处理
- ORA-55567: The _highthreshold_undoretention value should be at least string based on the current undo retention settings. ORACLE 报错 故障修复 远程处理
- ORA-55568: The maximum query length (mql) value should be atmost string based on the current _highthreshold_undoretention setting. ORACLE 报错 故障修复 远程处理
- ORA-64107: The XMLIndex has been successfully altered but the metadata could not be updated. ORACLE 报错 故障修复 远程处理
- ORA-06514: PL/SQL: The remote call cannot be handled by the server ORACLE 报错 故障修复 远程处理
- MySQL Error number: MY-011481; Symbol: ER_GRP_RPL_SET_STABLE_TRANS_ERROR; SQLSTATE: HY000 报错 故障修复 远程处理
- ORA-06811: TLI Driver: could not set the IPX network number at init ORACLE 报错 故障修复 远程处理
- ORA-07460: cannot set the RESOURCE_MANAGER_PLAN parameter ORACLE 报错 故障修复 远程处理
- ORA-13776: User “string” has not been granted the “SELECT” privilege on the “SQL tuning set” DBA views. ORACLE 报错 故障修复 远程处理
- cannot SET AUTOTRACE问题解决详解程序员
- Redis Set键值对的自动过期(redisset过期)
- python:dict vs list vs set详解编程语言
- 编译安装PHP,解决问题 Don’t know how to define struct flock on this system, set –enable-opcache=no详解编程语言
- set利用Redis实现排序功能:Sorted Set的应用(redissorted)
- Exploring the versatility of Linux: The significance of the var directory(linux系统var)
- MySQL 中SET的用法及其重要性(mysql中的set)
- MySQL中SET的功能及用法简介(mysql中set的意思)
- MySQL中SET使用方法详解(mysql中set作用)
- 利用Oracle Set 快速进行判断(oracle set判断)
- 从Redis中获取Set集合的简单方法(redis获取set集合)