Docker Desktop walkthrough

In this section we will go through the Docker Desktop application and understand how to use it to work with containers. Firstly you can download Docker Desktop from the Docker official website. You will automatically get Docker upon installing the Docker Desktop.

When you open the Docker Desktop application, In the top left corner you will see a similar interface:

This is where you can select if you want to work on Images or Containers or any other component. Let’s discuss how we can run containers, stop them and delete the container Images from the Docker Desktop interface:

Running a Container Image:

For running a Container image, select the Images section in the top left corner and you will get a list of Container Images. You can simply run the container image you want to run by clicking on the run button corresponding to it:

You will See that the Nginx container starts running:

If you have the Container image locally, you can also go to the Docker Hub in the Application it finds the container image there.

Stopping a Container

Again, stopping a container is very straight forward in the Docker Desktop UI. Firstly, go to the Containers section where you will see a list of running or stopped Containers. You can simply click on the stop button (the run button will be converted to the stop button once the Container is running).

Once you click the stop button. The Container will be stopped and the status instead of Running will say Exited:

Deleting the Container Image

For deleting the Container Image, you can simply go to the Images section and click on the Delete button.

It will ask you if you wish to Delete the image forever, if yes, the image will be removed from the memory.

Understanding the Docker Desktop Architecture and Linux Building Block for Containers

In this article we are going to do a technology deep dive and start understanding the foundational Linux kernel features that software like Docker is using to make the containers work and provide those isolated environments that we all use. then towards the end of this section, we’ll also take a look at the docker system architecture.

Similar Reads

The building blocks of containers

There are three technologies that make up the core of a container....

Namespaces

The technical definition of Namespaces – “A namespace wraps a global system resource in an abstraction that makes it appear to the processes within the namespace that they have their own isolated instance of the global resource. Changes to the global resource are visible to other processes that are members of the namespace but are invisible to other processes.”...

C groups or Control groups

The technical definition of Control groups – “a Linux kernel feature which allow processes to be organized into hierarchical groups whose usage of various types of resources can then be limited and monitored.”...

Union Mount Filesystems (OverlayFS)

The Technical definition of Union Mount Filesystems – “Union Mount Filesystems (overlayfs) allows files and directories of separate file systems, known as branches, to be transparently overlaid, forming a single coherent file system. Contents of directories which have the same path within the merged branches will be seen together in a single merged directory, within the new virtual filesystem.”...

Docker Desktop Architecture

...

Docker Desktop walkthrough

In this section we will go through the Docker Desktop application and understand how to use it to work with containers. Firstly you can download Docker Desktop from the Docker official website. You will automatically get Docker upon installing the Docker Desktop....

Conclusion

We started out with the building blocks of containers which are Namespaces, Control groups and Union file systems. In summary, Namespaces are mechanism used to wrap any global system resource such that the processes that are running within the namespace thinks that they have their own isolated instance of that resource. Control groups are also similar to this but we use control groups for explicitly giving the control of certain resources to the processes....

FAQs on Docker Desktop Architecture and Linux Building Block for Containers

1. Is Docker Engine Same as Docker Desktop?...

Contact Us