Sitemap
Quick Code

Find the best tutorials and courses for the web, mobile, chatbot, AR/VR development, database management, data science, web design and cryptocurrency. Practice in JavaScript, Java, Python, R, Android, Swift, Objective-C, React, Node Js, Ember, C++, SQL & more.

A Brief Information About Docker

--

If you are working in a software related area 💻, you may have heard about Docker lately. With Docker, you can run Linux and Windows virtual containers (machines) on Linux, Windows and MacOSX. With this platform, you can easily install, test and deploy web systems. Perhaps the most important feature was “It was working on my computer, why didn’t it work on the server?” is eliminating the problem.

In this post, I will explain Docker in 4 sections.

  • What is Docker?
  • Main Components of Docker
  • Installing Docker
  • Docker Commands
Photo by on

What is Docker?

is an open source virtualization platform developed for software developers and systematics. Docker provides a convenient environment to build, package and run applications, anywhere.

It’s good to hear that “anywhere”, right? 😄

Photo by on

But, how does Docker do that? 😲

  • Of course with containers.

Docker uses containers for your application, so you don’t need to worry about environment you’re working on.

Containers vs Virtual Machines on Docker.com

Unlike virtualization of servers and a virtual machine, the container does not integrate the Operating System, it communicates directly with the operating system of the server on which it’s deployed.

Main Components of Docker

Docker Engine is a client-server based application and has a few main components. These components are listed below:

Docker Engine on Docker.com
  • The Server is a daemon process (Docker Daemon, the dockerd command) which is responsible for creating and managing Docker Images, Containers, Networks and Volumes.
  • The REST API provides the communication between applications and the Server and instruct it to get their job done.
  • The Client is a command line interface (CLI), which allows users to interact with Docker using the commands.
Docker Architecture on Docker.com

I found an explanation about Docker architecture on Docker.com. I copied and pasted below directly, because it is such a good explanation. You can read this explanation below and you can also click for further information about it.

“”

Installing Docker

Before we get started to use Docker, we must install it on our machine. 😎 For this, you can click the links below related to your OS.

After the installation is done, you can do everything you want using Docker. SHOW NO MERCY 😡.

Docker Commands

In this stage, I will describe base commands of Docker shortly 🐑. I don’t give any snapshots of these commands. You can find detailed descriptions of these commands on many sites.

Photo by on
  • docker create : We can create a new container.
  • docker ps : This command allows us to list all running containers on the Docker Host.
  • docker start : We can start any stopped container.
  • docker stop : We can stop any started container with the first few unique characters like docker start command.
  • docker run : This command is combination of docker create and docker start commands. It creates a container and then it starts the container.
  • docker rm : If we want to delete a container, we can use it.
  • docker images : This commands lists all images which present on the Docker Host.
  • docker rmi : We can delete an image with this command.

You can click this for further information about Docker commands.

Conclusion

If you want to run your applications anywhere without considering environment you are working on, you should give Docker a chance.

This article contains brief information about Docker that every developer should know. Then, I will explain how to dockerize a Spring Boot application. 😃

Resources

Thank you for reading! 🙏 Your thoughts are very valuable to me. Please feel free to share. 😄

Quick Code
Quick Code

Published in Quick Code

Find the best tutorials and courses for the web, mobile, chatbot, AR/VR development, database management, data science, web design and cryptocurrency. Practice in JavaScript, Java, Python, R, Android, Swift, Objective-C, React, Node Js, Ember, C++, SQL & more.

Yiğitcan Nalcı
Yiğitcan Nalcı

Written by Yiğitcan Nalcı

Dad. Software Engineer. Sports lover, doer. Curious about science and technology. Novice writer for now.

No responses yet