ECS and Disk Size Update

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

猜你喜欢

转载自sillycat.iteye.com/blog/2406112
ECS
今日推荐