Question: Why introduce docker in the IT industry ?
Ans: Docker provide the environment for run or perform the task according to your command and do not take extra resources from your computer system. it is write in go language, do not need to install os and do not need to run virtual.
The software are use to launch that technology that is called LXC (Linux Container)
LXC : It is the process to perform for the specific task like os building, start process, app/cmd/process run.
it is also create the environment for run the task like jvm in java programming .
this the create the container of each and every process or task and that container have life time is to complete the process.
Tool for the LXC :
1- buildah
2- containerd
3-docker
4- podman
We are use the Docker technology :
1- Installation of docker
# yum install docker
# systemctl restart docker
# systemctl enable docker
2- Install docker image
we have two method for installation of docker image
1- graphically go to https://hub.docker.com/ and type image you want to download and run
2- To run the command and download the image
# docker search image_name
search the image what you want to download
# docker pull image_name
download the docker image
# docker images
to show the all image which is download
#docker run image_name:tag task_name
or
#docker run ID task_name
run the task which you want to perform
#docker ps -a
show all the history of docker command
#docker run -it (image_name OR ID) task_name
to select your task from history and run again and same task
#docker start ID
to start the again the task which you want to perform
#docker exec -it image_name task_name
to select your task from history and run again and same task but the difference between run and exec , in the run your container life is process time but the exec container time is unlimited that means the container not close after close the process
Ans: Docker provide the environment for run or perform the task according to your command and do not take extra resources from your computer system. it is write in go language, do not need to install os and do not need to run virtual.
The software are use to launch that technology that is called LXC (Linux Container)
LXC : It is the process to perform for the specific task like os building, start process, app/cmd/process run.
it is also create the environment for run the task like jvm in java programming .
this the create the container of each and every process or task and that container have life time is to complete the process.
Tool for the LXC :
1- buildah
2- containerd
3-docker
4- podman
We are use the Docker technology :
1- Installation of docker
# yum install docker
# systemctl restart docker
# systemctl enable docker
2- Install docker image
we have two method for installation of docker image
1- graphically go to https://hub.docker.com/ and type image you want to download and run
2- To run the command and download the image
# docker search image_name
search the image what you want to download
# docker pull image_name
download the docker image
# docker images
to show the all image which is download
#docker run image_name:tag task_name
or
#docker run ID task_name
run the task which you want to perform
#docker ps -a
show all the history of docker command
#docker run -it (image_name OR ID) task_name
to select your task from history and run again and same task
#docker start ID
to start the again the task which you want to perform
#docker exec -it image_name task_name
to select your task from history and run again and same task but the difference between run and exec , in the run your container life is process time but the exec container time is unlimited that means the container not close after close the process
Comments
Post a Comment
thank you for visiting :)