 
							DevOps@RajeshKumar.XYZ
 
					 
					 
					1 : 1
 
					 
						 
						 
					 
						 
						 
						 
						 
						 
						 
						 
						 
						 
						 
					 
						    
					 
						 
						 
						 
						 
						 
						 
						 
						 
						 
						 
						 
						 
						 
						Containers consume less CPU, RAM and disk resource than Virtual Machines
 
						 
						 
						 
						 
						 
						 
						 
						 
						 
						 
						 
						 
						 
						 
						 
						 
						 
						 
					 
					 
					 
					 
					 
					 
						 
						 
					 
					 
					 
					 
						 
						 
					 
						 
						 
						 
					 
					 
					 
					 
					 
					 
					 
					 
					 
					 
					 
					 
					Containers can contain malicious code
Trust the code you run!
 
					 
					 
					 
					 
								Equipment images from www.konecranes.com
 
								Equipment images from www.konecranes.com
 
								Equipment images from www.konecranes.com
 
								Equipment images from www.konecranes.com
 
								Equipment images from www.konecranes.com
 
								Equipment images from www.konecranes.com and www.terex.com
 
					 
					 
					 
					 
					 
					 
					 
					 
					 
					 
					 
					 
					 
					 
					 
					 
					 
					 
					 
					 
					 
					 
					 
					 
					         
					         
					         
					         
					         
					         
					 
					 
					 
					 
					 
					 
					 
					     
						 
						 
						 
						 
	CMD                                              RUN
	Run-time                                         Build-time
	Run commands in
	containers at launch time                        Add layers to images
	                                                 Used to install apps
	Equivalent of -
	    docker run < args > 
	    docker run < args > /bin/bash
	One per Dockerfile
	
	
	                          
    Shell Form                                     Exec Form
    Commands are expressed the same                JSON array style -
    way as shell commands                            [“command”,“arg1”]
    Commands get prepended                         Containers don’t need a shell
    by “/bin/sh –c”                                Avoids string munging by the shell
    Variable expansion etc…                        No shell features –
	                                               No variable expansion
                                                        No special characters (&&,||,>….)
	                         
					 
					 
					 
					 
					 
					         FROM ubuntu:15.04 
					FROM ubuntu:15.04
						
					
					
					CMD ping 8.8.8.8 
					FROM ubuntu:15.04
					
					
					RUN apt-get install–y
					iputils-ping
							
					CMD ping 8.8.8.8 
					FROM ubuntu:15.04
					
					RUN apt-get update
					
					RUN apt-get install–y
					iputils-ping
						
					CMD ping 8.8.8.8 
					FROM ubuntu:15.04
					
					RUN apt-get update &&\
					  apt-get install –y \
					  iputils-ping
						
					CMD ping 8.8.8.8 
					 
					 
				    