ECS and Disk Size Update

本文介绍了如何检查和更新Amazon ECS实例上的磁盘大小。通过使用Docker命令,可以查看当前运行的应用程序所使用的磁盘空间,并展示了如何删除旧镜像以确保更新本地缓存的镜像。
ECS and Disk Size Update

This is an update for http://sillycat.iteye.com/blog/2361322

Ways to check the Disk Size for that Image
>sudo docker run -ti centos df -h /tmp
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/docker-202:1-264860-84bf76dca1d07f2e4698ca01929081e957456fd0f3edc182811bd3874923230a 20G 249M 20G 2% /

docker run -ti xxxxx.dkr.ecr.us-east-1.amazonaws.com/fr/jobs-producer:1.292 df -h /tmp
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/docker-202:1-264860-d8b9071c3efd34d8fe4fc06aaf6d538620c673c9195e592baf4080c2a9de6391 20G 615M 20G 4% /

Ways to check current running Docker Application
>docker exec 7e2b034c4d34 df -h /tmp
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/docker-202:1-264860-3cf167246cc25b8303159a6df7f5be2cdf55765a581cf2429c75086eff06d6aa 10G 650M 9.4G 7% /

Before I just checked my Device Base Size is 20G, that is it. But actually if you already have the images cached on your local, it will not be updated.
So you need to
docker rmi centos:7

Just delete the old image and ask the docker to pull the new image again to make the Base Device Size setting work.


References:
http://sillycat.iteye.com/blog/2361322
https://github.com/aws/amazon-ecs-agent/issues/716
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值