Docker Demo
$count++; if($count == 1) { include "../mobilemenu.php"; } if ($count == 2) { include "../sharemediasubfolder.php"; } ?>
Docker commands:
To restart docker service:
# service docker restart
To list all Docker images:
# docker images
To get the Ubuntu 14.04 image from Docker.
# docker pull ubuntu:14.04
## The above command pulls ubuntu image from docker hub.
To run the Ubuntu image we just downloaded:
# docker run -it ubuntu:14:04
The above command launches Ubuntu instantly, with everything setup.
Now Operating System is ready, we can configure Web Server, Database Server etc.
Then we can create own AMI image and share image on AWS community.
We can run the command again.
# docker run -it ubuntu:14:04
This is a new Operating System.
So we now have two operating systems running.
We can now ping each other.
To find out which operating systems are running, we can use the following command.
# docker ps
Result: Two Operating Systems will be running.
One Operating System consumes only 10 MB RAM.
So we can run 100 VMs via Sharing model.
Internally, Docker runs Hyper-V in Windows and then installs 50 MB Linux file.
ECS in AWS is Container as a Service - CaaS.
ECS is used to manage Docker service.
ECS stands for EC2 Container Services.