Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

How does docker desktop work with docker compose?


Asked by Valentino Pittman on Dec 02, 2021 Docker



With Compose, you use a YAML file to configure your application’s services. Then, with a single command, you create and start all the services from your configuration. Docker Compose installs automatically with Docker Desktop. A multi-container app is an app that has multiple containers running and communicating with each other.
Also,
Docker is a basic tool, like git or java, that you should start incorporating into your daily development and ops practices. Use Docker as version control system for your entire app's operating system. Use Docker when you want to distribute/collaborate on your app's operating system with a team.
Keeping this in consideration, Docker is basically a concept of creating a light weight ‘Virtual Machines’ within a Linux Machine by just creating a single process in it. The real meaning of a Docker is “person who load and unload the containers from a ship’. If you don’t understand how it creates and manages virtual machines(aka containers), then this post is for you.
Just so,
Docker containers (and other container technologies) work by isolating processes and their resources using kernel features. This allows running multiple containers on a single kernel. Virtual machines are different. In this scenario there are multiple independent kernel with running on a single hypervisor.
Consequently,
Docker provides a very powerful command diff which lists the changes in the files and directories. The changes include addition, deletion and those represented by the A, D and C flags, respectively. This command improves debugging processes and allows faster sharing of environments.