understanding docker

 Docers resolved the execution of a piece of code by shipping the container to any platform which has docker runtime installed.


with the help of docker runtime will bybass the need to additional configurations for an application running on multiple 

plarform 


It has got hub.docker.com which is a public docker repository


greater portability 


Dockers provides great isolation as application running in one container may not communicate with apllications running on 

another container on a docker runtime


Commands:

=======

#docker info // we will get complete informationb about docker and its platform


syntax : 

======= 

docker <sub command> <one more sub command>

docker --help 

eg:

docker image --help 

docker run --help 


docker image  

docker network

docker volume

docker run 



How to create account on hub.docker.com?

======================================== 

login to hub.docker.com

search for images 


docker pull ubuntu

// this command will search for the latest image in the repository and download the latest image which has the latest tag

docker images 

docker ps  //shows running container 

docker ps -a // shows containers which are not running 

docker rm <containerid>

docker run it ubuntu sh   // it callesd as interactive container 

the above conmand says container has been running with sh shell 

docker stop <container id>

docker start <container id> // here it runs in back ground

docker attach <container id> // runs in the foreground


Comments

Popular posts from this blog

How to make CRS and ASM not to restart after server reboot

How to repair ASM disk header

How to replace ASM failed disk?