What is a Docker container?

The easiest way to understand what a container is is to think of it as a process that runs on our machine, isolated from other processes.

To make this happen, Linux namespaces and cgroups are used under the hood.

... 1/4
A container has its own dedicated filesystem, provided by an image.

The image contains:

-dependencies
-configuration
-binaries
-environment variables
-other important data related to the container to be instantiated.

Many containers can be run from a single image

... 2/4
Technically, a container is first created, then, started.

To do this with a single command, we can use the 'docker run' command.

to see all the containers running on the host:
'docker container ls -a'

or just
'docker ps -a'

... 3/4
To run a container, we need the image.

If we use the `docker run` command, but the image is NOT on our filesystem, Docker looks for it in the public registry (Docker Hub), and it downloads the image (pull).

to see the images:
`docker image ls`

or just
`docker images`

... 4/4

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Francesco Ciulla

Francesco Ciulla Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @FrancescoCiull4

26 Apr
DOCKERFILE:

What is it?
A Dockerfile is a text document that contains all the commands a user could call on the command line to assemble an image.

In other words, a Dockerfile allows you to avoid writing each command one by one in a super simple way

... 1/25
FORMAT:

The format of a Dockerfile is simple:

# Comment
INSTRUCTION args
INSTRUCTION args
INSTRUCTION args

The instruction is not case-sensitive, but the convention is to be UPPERCASE to distinguish them from arguments more easily.

add # to add a single-line comment

... 2/25
.dockerignore

Before sending the context to the Docker daemon, the Docker CLI checks if a .dockerignore file is in the root directory. If so it excludes files/dirs that match patterns in it.

It works in a similar way of the .gitignore

... 3/25
Read 25 tweets
23 Apr
Docker Architecture

Docker uses a client-server architecture.

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
Read 12 tweets
15 Apr
🟢That was a V-BLAST!!!🟢

I Tried VueJs for the First Time, it really impressed me!

My regret: We just scratched the surface

Thank you @themarcba for guiding me! I hope to give back if you wanna try🐳!

Special Thanks to @spences10 for the Donation!

🧵Of Best Moments Below.
Time: 4:50

Marc Experience as a Speaker and Tech Stack

Time 6:54

I will his next Guest in Decoding the Code Series!

Read 13 tweets
18 Feb
Today I tried Flutter and Dart for the first time, live, together with @tadaspetra

Here there are some highlights!!!

Spoiler:

In 100 minutes, from ZERO, we got a working built application (apk file) for Android, starting from zero.

On Windows.

That's amazing

A 🧵
Video Link:


Would you like a shorter version of this live?
Please let me know!
These were the Livestream Goals and what I had already installed

I had already:
- VS code installed
- Android Studio (wrong SDK version)
- Emulator Set

Goals:
- Install dart language
- Install Flutter
-Create a hello-world app
- Modify it a little bit
- Create the apk file
Read 21 tweets
7 Jan
Tailwind CSS - First impressions

I have Tried Tailwind CSS for the first time.

I studied directly from the official docs

I can say that I like what I've seen so far.

I will definitely use it for the next projects that will include a frontend.

A Thread of my impressions 🧵 Image
✅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.
Read 7 tweets
5 Jan
Yesterday I stayed away from social networks to think about 2021 without distractions.

I'll divide my week with "MAIN TOPIC OF THE DAY".

This is good for me, and for those who follow me to get free updates.

Thread below. Ask me Anything

RT if this can be useful to a friend. Image
⚛️MONDAY: REACT

I'll dedicate Mondays to React.

I will start with some small tips on Twitter, then with some basic projects.

It will be funny!
🟩🟨TUESDAY: NODE & JAVASCRIPT

I'll dedicate Tuesdays to Node JS

I will share some info about it and Javascript of course:

Tweets, some small projects.

I will show every project and library/feature I'll use.
Read 10 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!

Follow Us on Twitter!