Docker tutorial for beginners – part 1:
Free Digital Ocean Credit!
Docker is amazing, and it doesn’t have to be difficult to understand. In these tutorials, I’ll be breaking down exactly what a Docker container is and how to use it. I’ve found a lot of Docker container tutorials on the web, but I still hear from developers that it’s hard to grasp exactly what Docker is and how to work with Docker images & containers.

In this video, I’ll compare Docker to Vagrant and explain the differences, then in the next video, we’ll do our first miniature deployment with Docker by creating a Digital Ocean machine with Docker installed and then running a Docker web server container on the machine. Later on, we’ll get into docker machine, docker compose (fig) and a whole mess of other fun tooling.

Next up: how to run your first Docker web server –

High-Availability Docker #1:
– Cluster computing – CoreOS is our solution here. CoreOS allows us to make an expandable cluster of computers so we can add more computers should our application need more power to scale. CoreOS also allows us to run services on any machine in the cluster and they can all communicate with each other.

High-Availability Docker #2:
– Scheduling: we shouldn’t manually choose which app runs on which machine – this idea doesn’t work at scale. Fleet will be our scheduler that decides where our apps/services run. If a CoreOS machine goes down, fleet will reschedule any services that it was running onto a new machine.

High-Availability Docker #3:
– Service Registration
Since we never know what ip address or port a service will be running on, we need to register that service so other services can find it and communicate with it. We’ll use Etcd and Flannel for this

High-Availability Docker #4:
– Service Discovery:
Now that services have registered, we can discover them and load balance between them with a generic docker nginx container

High-Availability Docker #5:
– Public DNS: Once the app is working, we need a fixed way for the outside world to access it. We’ll use Nginx and Confd for this. Confd will watch Etcd for service registration and when services come/go, it will build a new configuration file for Nginx and reload Nginx.

-~-~~-~~~-~~-~-
Also watch: “Responsive Design Tutorial – Tips for making web sites look great on any device”

-~-~~-~~~-~~-~-

Nguồn: https://codeigniterbrasil.com

Xem thêm bài viết khác: https://codeigniterbrasil.com/lap-trinh-linux/

38 Comments

trey hanckok

May 22, 2020

Didn't realize it was so simple. Thanks!

Reply

Rakshana Dolly

May 22, 2020

https://youtu.be/6_6Ygmd7xEo
Cool animation video on docker

Reply

Jimmy Gray

May 22, 2020

The puppy dog is the icon for DataDog, awesome APM/logging platform.

Reply

keco185

May 22, 2020

So a similar idea to Java it seems

Reply

Shana Charlery

May 22, 2020

Thank you so much, for clearing everything, it still helps in 2020.

Reply

Annalise Trite

May 22, 2020

Really solid concise video

Reply

LeonKennedy_SoftwareDev

May 22, 2020

Another video about Docker – https://www.youtube.com/watch?v=T-WcoQdH270&t=
Please let me know your thoughts about it, I'm thinking whether it's worth to continue to create such videos or not. Is it helpful or it's already too much docker videos out there? I'd appreciate any feedback.

Reply

JasonK

May 22, 2020

Umm… this is definitely not geared towards people who have not read anything on Docker.

Reply

Wayne Cellon

May 22, 2020

Um, I want to know what Docker is. This video immediately starts talking about "Vagrant" and "Virtual machines". What are those? What's a "Github", "Production Server", or a "Staging Server"? I'm just a guy that was told I can run a Minecraft Server on my Synology using Docker. Doesn't seem like this video is for beginners.

Reply

Thomas

May 22, 2020

Take a look my microservices by docker, kubernetes, RabbitMQ … on AWS Serverless at: https://7molziwwm6.execute-api.ap-southeast-1.amazonaws.com/Prod/ , on Google Serverless at: https://webapp-psbav7u2rq-an.a.run.app and on Azure at https://BMW.AzureWebsites.Net . Thank you! You can contact me by ThomasTrungVo@Hotmail.com

Reply

Sobia Sheikh

May 22, 2020

An image that runs on top of the machine. know nothing about docker. Is it for static applications? if not how transactions would synchronize to the data source. Or each container is supposed to be independent enough.

Reply

IT Learning TechTube

May 22, 2020

nice tutorial.

Reply

Daniel Berry

May 22, 2020

Clear and concise explanation, thanks!

Reply

Kekistani Help Desk

May 22, 2020

Aaaaand I still don't get it 🙁

Reply

emwaving

May 22, 2020

docker engine is like game console. Container is game disc. Progress save to separate memory card.

Reply

Han Jiang

May 22, 2020

NICE!!!!! Best video telling the docker and vagrant story!!

Reply

stillFLiP

May 22, 2020

Does it have full access to the Host OS? For example in a VM with Ubuntu on host Arch, need to setup a network to transfer files, but the docker of Ubuntu on top of Arch can access user/root files (if given permission)?

Reply

Michael De Marco

May 22, 2020

I think that the intent of the dog although cryptic was that the first letter D would be used for App D the next in the sequence

Reply

khandaker toihid Islam

May 22, 2020

Thanks for clearing the concept of Docker

Reply

johnnypikachu

May 22, 2020

any dockers?

Reply

J C

May 22, 2020

This made 0 sense to me… maybe the diagrams

Reply

liudas5377

May 22, 2020

Really good, well done, thanks

Reply

D B

May 22, 2020

I have mac and want to install SQL server can I use Docker for that?

Reply

Show more

May 22, 2020

the puppy dog is just for the "Awwww"s

Reply

Young Grizzly

May 22, 2020

Everytime I hear docker I think OpenVZ with a seed file.

Reply

Richard Z

May 22, 2020

Makes perfect sense!

Reply

FckGoogle GoogleFck

May 22, 2020

The OS and The Environment that Your Code runs on are complexly and intimately entwined. Docker provides containers in which you control all aspects and can keep them all together, Your Code, the OS it runs on, and the Environment. This entire video, and many, many others, can be summarized in that single sentence. One sad effect of Youtube has been to encourage idiotic blabber and bloat.

Reply

Abu Musa

May 22, 2020

after all this hard work, i found this very relaxing https://www.youtube.com/watch?v=_8ApgH7828w

Reply

Daniel Miller

May 22, 2020

"I have no idea what this puppy dog is about." Lol. #Datadog

Reply

Huzaifa Ali

May 22, 2020

Really appreciate the conciseness and completeness of this video covering all the basic knowledge.

Reply

Celebrity Tales

May 22, 2020

learn more https://shivab.com/blog/docker/2019/01/10/introduction-to-docker-and-containerization/

Reply

Philip M. Turner

May 22, 2020

Thank you! 7:05 Once an docker image is built is it possible to view the contents of it like a directory? It would be nice to see the contents of each (like the container, the image, etc) so it’s understood what we’re achieving with each step of the process.

Reply

Carl Bonsu

May 22, 2020

Thank you. I finally understand what docker is and how it works. You explain very well 🙂

Reply

jsaenzMusic

May 22, 2020

Thank you! You've been the first vid to really explain docker and containers in a way I can understand!

Reply

hasanvizrt

May 22, 2020

What about local and production ip without any type of load balancer?

Reply

thatguy13378

May 22, 2020

What was the software used for the visualisation?

Reply

zolongOne

May 22, 2020

Very good explanation. Thank you!

Reply

Daniel Nascimento

May 22, 2020

best video about docker ever. Honestly.

Reply

Leave a Reply