Posts

Showing posts with the label does

Using Docker to find out what apt get update does!

Using Docker to find out what apt get update does! While I dabble in System Administration, I dont have a deep knowledge how packages are created or maintained. Today, well see how to use Docker to increase my understanding of "apt-get update". I was curious about this command because I read that its good practice to remove the files created during the update process. I started a small container using docker run -i -t debian:wheezy /bin/bash In another window, I found the ID of the running container using "docker ps". Lets pretend that ID starts with "45...". Look for any changed files using docker diff "45" Youll see nothing displayed. Now run "apt-get update" in the wheezy container. Then run the diff command again. You should see the following differences: C /var C /var/lib C /var/lib/apt C /var/lib/apt/lists A /var/lib/apt/lists/http.debian.net_debian_dists_wheezy-updates_Release A /var/lib/apt/lists/http.debian.net_debian...