当前位置:网站首页>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

边栏推荐
猜你喜欢
随机推荐
IE8 打开速度慢的解决办法
vs2017 redist 下载地址
基于Webrtc和Janus的多人视频会议系统开发5 - 发布媒体流到Janus服务器
SSO单点登陆
Design and implementation of legal aid platform based on asp.net (with project link)
IDEA中创建web项目实现步骤
bitnami/mongodb-sharded在AWS EKS扩展shard失败解决
使用cef离屏渲染技术实现在线教育课件和webrtc视频回放融合录制
ssm pom文件依赖 web.xml配置
LeetCode_Nov_4th_Week
2022在 Go (Golang) 中使用微服务的系统课程
虚幻引擎 5 完整指南[2022六月最新课程学习内容]
关于网络安全行业你知道多少?
基于Event Stream操作JSON
Uos统信系统 Postfix-smtps & Dovecot-imaps
网络安全行业是蓝景吗?
Fabric v1.1 environment construction
C语言无符号整型运算
【HIT-SC-MEMO6】哈工大2022软件构造 复习笔记6
LeetCode刷题









