๐‹๐š๐ฎ๐ง๐œ๐ก๐ข๐ง๐  ๐€ ๐–๐ž๐›๐ฌ๐ž๐ซ๐ฏ๐ž๐ซ ๐Ž๐ง ๐ƒ๐จ๐œ๐ค๐ž๐ซ ๐‚๐จ๐ง๐ญ๐š๐ข๐ง๐ž๐ซ

Parth Patel
2 min readMar 15, 2021

What is Docker ?

Docker is an open platform for developing, shipping, and running applications. Docker enables you to separate your applications from your infrastructure so you can deliver software quickly. With Docker, you can manage your infrastructure in the same ways you manage your applications. By taking advantage of Dockerโ€™s methodologies for shipping, testing, and deploying code quickly, you can significantly reduce the delay between writing code and running it in production.

The Docker platform

Docker provides the ability to package and run an application in a loosely isolated environment called a Container. The isolation and security allow you to run many containers simultaneously on a given host. Containers are lightweight because they donโ€™t need the extra load of a hypervisor, but run directly within the host machineโ€™s kernel. This means you can run more containers on a given hardware combination than if you were using virtual machines. You can even run Docker containers within host machines that are actually virtual machines!

Docker provides tooling and a platform to manage the lifecycle of your containers:

  • Develop your application and its supporting components using containers.
  • The container becomes the unit for distributing and testing your application.
  • When youโ€™re ready, deploy your application into your production environment, as a container or an orchestrated service. This works the same whether your production environment is a local data center, a cloud provider, or a hybrid of the two.

Install Docker :-

Here I am using Redhat as Base Os, You can use any.

So, run the below command-

dnf install docker-ce --nobest

After Installing Docker Now we are Ready to move Further.

To Download the Docker Image used for the Container Docker has Command as :-

docker  pull  {image_name}

In My Case I have Used Centos Image, You can Use any

To launch Docker Container Command is :-

docker run -{options} --name {name_of_container} {image_name}

Now We have to install HTTPD Package for Configuring Webserver :-

yum install httpd -y

Start HTTPD Service :-

To Start any service in Linux we normally use systemctl command. But Inside Docker Container by default some commands are not configured. For these to Start HTTPD Service command we use is :

/usr/bin/httpd

Thank you for reading my article๐Ÿค—

Keep Learning๐Ÿ’ซKeep Sharing๐Ÿค๐Ÿป

Linkedin Profile :-

Do clap if this article was helpful. Good Day!

--

--

Parth Patel

ARTH Learner | Bigdata โ€” Hadoop | Linux | Front-End Developer | Flask | Coding Enthusiast | Python | AWS | Ansible | Kubernetes