Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Docker difference between two containers

How do I find the difference between two running containers using Docker client? I have an image running as multiple instances and later I have changed/installed new packages in the instances and lost track. Is there a way I can find the differences between these running containers?

like image 798
user88975 Avatar asked Oct 07 '14 06:10

user88975


1 Answers

you must inspect container

docker inspect CONTAINER_1
docker inspect CONTAINER_2

find the fragment for each one

"Id": "cc502eeb69968c9b80c029f8124333d725ee124db4357de69786bc9bdf3a8088",

then with the tow ID you can compare the folders

/var/lib/docker/aufs/mnt/CONTAINER_1 vs /var/lib/docker/aufs/mnt/CONTAINER_2

like image 59
Montells Avatar answered Sep 23 '22 21:09

Montells