First of all, we configure a repo that has docker-ce software using the following command: sudo yum install -y yum-utilsĪfter the repository add you can check the repo in (/etc//) location.
Docker installation in centos/RedhatĪs we discuss earlier Dockerhub has the Hello-world official image so let’s see how to install docker and create containers. Later we use this image in our container as well as we push the image on Dockerhub. we just write the commands in Dockerfile and using this file we build our own image. Dockerfileĭockerfile is a scripted text file that is used to customize our container and install desire software inside the docker container. We also create our own customize image using the docker commit command and using Dockerfile and publish or push them on the docker hub. You can find Docker images of Hello-world, Ubuntu, Centos, etc. Docker hub is a centralized location that is maintaining docker images. We create lots of containers using single docker images. Docker images are executable files that are used to create separate containers in Docker. we can also destroy these containers easily.ĭocker images are like snapshots in VMs. we can easily create new containers with help of docker images. If any problem or bug comes then it does not affect our Base OS and it also gives extra security. basically, the docker container is used in application development. Docker containerĭocker container is a separate virtualized environment that is used to test, run and deploy the applications. Let’s start with the key terminologies that you must know.