当前位置:网站首页>Memory limit should be smaller than already set memoryswap limit, update the memoryswap at the same
Memory limit should be smaller than already set memoryswap limit, update the memoryswap at the same
2022-08-04 05:33:00 【上海_运维_Q先生】
1. 报错现象
报错信息:
Memory limit should be smaller than already set memoryswap limit,
update the memoryswap at the same time
当对容器执行docker update时发生报错
[email protected]:~# 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
边栏推荐
猜你喜欢
随机推荐
Uos统信系统 DNS
MVC custom configuration
Unity Day01
线程池原理
基于Event Stream操作JSON
新冠病毒和网络安全的异同及思考
一场聚会,转行渗透测试月薪13.5k,感谢那个女同学......
【HIT-SC-MEMO4】哈工大2022软件构造 复习笔记4
PS像素画学习-1
让src文件夹能读取xml文件
LeetCode_Dec_1st_Week
Vmmem process (WSL2) consumes huge amount of memory
Stream API
bitnami/mongodb-sharded在AWS EKS扩展shard失败解决
JVM intro
库函数的模拟实现-C语言
网络通信与Socket编程概述
冰歇webshell初探
Uos统信系统 本地APT源配置
[English learning][sentence] good sentence