The Docker client talks to the Docker daemon (server), which menages different docker objects:
- Images
- Containers
- Networks
- Volumes
Let's see in details:
... 1/12
The Docker client and the daemon can run on the same system, or they can be connected remotely using HTTP protocol.
The connection is established using REST APIs, over UNIX sockets/network interface
... 2/12
DOCKER DAEMON (SERVER)
The Docker daemon (dockerd) is a process, which runs in the background, that manages the docker objects (images, containers, networks, volumes). It processes Docker API requests
... 3/12
DOCKER CLIENT
The main way of interacting with Docker.
When you use commands such as docker run, the client sends these commands to dockerd, which carries them out.
The docker command uses the Docker API.
One client can communicate with multiple daemons.
... 4/12
IMAGES
Read-only binary templates that contain instructions and metadata for creating Docker containers.
You can use existing images, or create your custom one, starting from an existing one, or even from scratch.
... 5/12
Images can be created by defining a Dockerfile, which is a text file that contains commands used to create the image, one layer per instruction.
Docker uses a system of caching so a new layer is built only if it changed. It’s super effective!
...6/12
CONTAINERS
Runnable instances of an image. Multiple containers can be instantiated from the same Image. They can be created/started/stopped/deleted using the Docker API/CLI, and are isolated from other containers and the host machine using namespaces (Linux feature).
...7/12
Containers can be attached to networks, or be connected with storage. This is important because they are ephemerals, so when they are removed, each state not stored is lost
...8/12
NETWORKS
Containers can be connected to each other or to non-Docker services, using networks/drivers.
5 types of Networks:
- bridge: allows containers connected to communicate, and it provides isolation from containers that are not connected to that bridge network.
...9/12
- HOST: removes network isolation between the container and Host
I will definitely use it for the next projects that will include a frontend.
A Thread of my impressions 🧵
✅SIMPLE = GOOD
The first thing that struck me was the simplicity with which it can be integrated into a simple project.
It is from this that we know if a Framework will be successful and I'm sure it will.
I don't know why something like this hasn't existed for a long time
🛠️CUSTOMIZATION
I was expecting something like bootstrap but improved instead the approach is completely different.
Yes in Bootstrap you can always customize the elements, but I always found it complicated and every time I found myself rewriting the same custom classes.
✅If you think you are not a "social media type" but you would like to start getting to know yourself, this thread is for you.
👋Hi, for all the people who don't know me, I am Francesco, from Rome, Italy. I am 37 years old and I've worked as a Software Engineer for the Copernicus Project for European Space Agency.
👨💻Exactly one year ago, I was just coding by myself, alone, studying, and exercising daily
📱At the beginning of this year, I've started using Twitter a little more, because I wanted to promote an Android App I did.
⚗️It's a Simple periodic Table, that has nothing to do with programming. An idea I had had since Android Came out.