Friday, August 7, 2020

Basics_To_Start_With_Docker

Docker:

Docker makes the process of application deployment very easy and efficient and resolves lot of issues related to deploying applications

Docker is the world's leading software container platform

Docker is a tool designed to make it easier to deploy and run applications by using containers

Containers allow developer to package up an application with all of the parts it needs , such as libraries and other dependencies , and ship it all out as one package



















Docker - Build app  only once

An application  inside a container can run on any system that has Docker installed.So there is no need to build and configure app multiple times on different platforms.




with Docker you test your application inside a container  and ship it  inside container.

This means  the environment in which you test  is identical to the one on which the app will run in production

Docker  containers  can run on any  platform.

It can  run on  your local system , Amazon ec2,Google cloud platform ,Virtualbox etc,

Like GIT , Docker has in-built  version control system

Docker containers works just like GIT  repositories , allowing you to commit changes to your Docker images and version control them


With Docker  every application works  in isolation in its own container and doesn't interfere with other applications running on the same system.

so multiple containers can run on same system without interference.


Download Docker Tool Box  from

https://github.com/docker/toolbox/releases



click on Docker quickstart terminal from desktop,

if you find this error




Unable to start the VM: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe startvm default --type headless failed:
VBoxManage.exe: error: Raw-mode is unavailable courtesy of Hyper-V. (VERR_SUPDRV_NO_RAW_MODE_HYPER_V_ROOT)
VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component ConsoleWrap, interface IConsole

Details: 00:00:05.339457 Power up failed (vrc=VERR_SUPDRV_NO_RAW_MODE_HYPER_V_ROOT, rc=E_FAIL (0X80004005)


run this in cmd runline to get rid off above error.(Note- If at you get this) -its on your risk

dism.exe /Online /Disable-Feature:Microsoft-Hyper-V

Docker Commands

Basics

docker version
docker -v
docker info
docker --help
docker images --help
docker run --help



Images

docker pull ubuntu
docker images
docker images --help
docker images -q
docker images -a




docker rmi --help
docker images -a
docker rmi 1e4467b07108






Containers
Container are running instances of Docker Images

docker ps
docker run ubuntu
docker run -it ubuntu   (it -interactive)










container id:



docker start 4c589dd00842






No comments:

Post a Comment

Selenium_Grid_With_Docker_Compose(yml file)

 docker-compose.yml version: "3" services:   hub:     image: selenium/hub:3.141.59     ports:       - "4444:4444"   chro...