Search This Blog

Thursday, March 17, 2016

Docker Basics -101





Docker is same like a virtual machine except it doesn’t have its on kernel and its container based.
Docker images can be built from docker files and deployed on multiple containers in same virtual machine.
Docker is more application oriented and doesn’t required seperate OS resources.

For windows docker can be installed by the docker toolkit which is a handle to docker virtual machine (default) which hots docker daemon.
$docker  // will give you all the options available to docker
even if you are on windows you can directly open the virtual box and login to the vm and execute your commands directly instead of using docker client.
To list images do
$docker images // –q for just ids/numerics
To save an image
docker save –o /path/imagename.tar  image-name ( i found repository name working here, the first column on list images screen)
save docker image
here codenvy/che is the repository name

To move images between different systems , use scp

scp image.tar root@ip:location //
now go to target system and do
$docker load < image.tar

No comments:

Post a Comment