williamyeh/show-kernel-info
Simple tool to display info about Linux kernel and distribution.
173
This directory is to demostrate the "shared kernel" and root file system features of Docker, using show-kernel-info.sh as example.
To run all experiments in this directory, VirtualBox and Vagrant should be installed first. You may read my Vagrant Tutorials series for more information about Vagrant.
See my screencast: "Shared Kernel" and root file system features of Docker.
Prepare environments for experiment.
CAUTION: This may take minutes. Do it at a place with good bandwidth.
$ ./prepare.sh
For the CentOS case:
$ cd centos
$ vagrant up
$ vagrant ssh -c "cd /vagrant ; ./show-kernel-info.sh"
For the Ubuntu case:
$ cd ubuntu-with-docker-image
$ vagrant up
$ vagrant ssh -c "cd /vagrant ; ./show-kernel-info.sh"
For the CoreOS case:
$ cd coreos-with-docker-image
$ vagrant up
$ vagrant ssh -c "cd /vagrant ; ./show-kernel-info.sh"
For the Ubuntu case:
$ cd ubuntu-with-docker-image
$ vagrant up
$ vagrant ssh -c "docker run --rm williamyeh/show-kernel-info"
For the CoreOS case:
$ cd coreos-with-docker-image
$ vagrant up
$ vagrant ssh -c "docker run --rm williamyeh/show-kernel-info"
docker pull williamyeh/show-kernel-info