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/
Xem thêm Bài Viết:
- Hướng dẫn sử dụng hệ điều hành linux siêu tốc – bài 25 Xem cấu hình hệ thống (cpu, ram, hdd)
- Linux cat command summary with examples
- Cài nhiều hệ điều hành Windows và Linux trên một máy tính
- Hướng dẫn tạo USB Boot DLC2019 (NTFS / UEFI) Trên windows 10 ( sử dụng USB 32 GB )
- Hướng dẫn gỡ bỏ Ubuntu sạch sẽ nhất bằng lệnh trên Windows theo chuẩn UEFI-GPT
trey hanckok
May 22, 2020Didn't realize it was so simple. Thanks!
Rakshana Dolly
May 22, 2020https://youtu.be/6_6Ygmd7xEo
Cool animation video on docker
Jimmy Gray
May 22, 2020The puppy dog is the icon for DataDog, awesome APM/logging platform.
keco185
May 22, 2020So a similar idea to Java it seems
Shana Charlery
May 22, 2020Thank you so much, for clearing everything, it still helps in 2020.
Annalise Trite
May 22, 2020Really solid concise video
LeonKennedy_SoftwareDev
May 22, 2020Another 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.
JasonK
May 22, 2020Umm… this is definitely not geared towards people who have not read anything on Docker.
Wayne Cellon
May 22, 2020Um, 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.
Thomas
May 22, 2020Take 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
Sobia Sheikh
May 22, 2020An 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.
IT Learning TechTube
May 22, 2020nice tutorial.
Daniel Berry
May 22, 2020Clear and concise explanation, thanks!
Kekistani Help Desk
May 22, 2020Aaaaand I still don't get it 🙁
emwaving
May 22, 2020docker engine is like game console. Container is game disc. Progress save to separate memory card.
Han Jiang
May 22, 2020NICE!!!!! Best video telling the docker and vagrant story!!
stillFLiP
May 22, 2020Does 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)?
Michael De Marco
May 22, 2020I 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
khandaker toihid Islam
May 22, 2020Thanks for clearing the concept of Docker
johnnypikachu
May 22, 2020any dockers?
J C
May 22, 2020This made 0 sense to me… maybe the diagrams
liudas5377
May 22, 2020Really good, well done, thanks
D B
May 22, 2020I have mac and want to install SQL server can I use Docker for that?
Show more
May 22, 2020the puppy dog is just for the "Awwww"s
Young Grizzly
May 22, 2020Everytime I hear docker I think OpenVZ with a seed file.
Richard Z
May 22, 2020Makes perfect sense!
FckGoogle GoogleFck
May 22, 2020The 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.
Abu Musa
May 22, 2020after all this hard work, i found this very relaxing https://www.youtube.com/watch?v=_8ApgH7828w
Daniel Miller
May 22, 2020"I have no idea what this puppy dog is about." Lol. #Datadog
Huzaifa Ali
May 22, 2020Really appreciate the conciseness and completeness of this video covering all the basic knowledge.
Celebrity Tales
May 22, 2020learn more https://shivab.com/blog/docker/2019/01/10/introduction-to-docker-and-containerization/
Philip M. Turner
May 22, 2020Thank 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.
Carl Bonsu
May 22, 2020Thank you. I finally understand what docker is and how it works. You explain very well 🙂
jsaenzMusic
May 22, 2020Thank you! You've been the first vid to really explain docker and containers in a way I can understand!
hasanvizrt
May 22, 2020What about local and production ip without any type of load balancer?
thatguy13378
May 22, 2020What was the software used for the visualisation?
zolongOne
May 22, 2020Very good explanation. Thank you!
Daniel Nascimento
May 22, 2020best video about docker ever. Honestly.