DOCKER Data Persistence | Volumes, Bind and tmpfs Mounts

  Рет қаралды 795

headintheclouds

headintheclouds

Күн бұрын

In this video we'll be focusing on data persistence, which is crucial for ensuring that your data remains safe and accessible throughout the lifecycle of your containers.
⏰ Timestamp:
00:00 - Intro
00:48 - Data Persistence in Docker
02:21 - How can we overcome these challenges?
04:40 - Method 1: Docker Volumes
06:11 - Method 1 DEMO: Data loss without using a Docker Volume
14:18 - Method 1 DEMO: Data persistence using a Docker Volume
22:42 - Method 1: Categories
25:22 - Recommendations for Environments
26:24 - Method 2: Bind Mounts
26:54 - Method 2 DEMO: Creating a Bind Mount
33:36 - Method 3: Docker tmpfs Mounts
34:29 - Method 3 DEMO: Using Docker tmpfs Mounts
41:40 - Table of Comparision
42:21- Summary
🔗 Links for Demos:
Docker Volumes: github.com/mili-sucevic/hitc-...
Bind Mounts: github.com/mili-sucevic/hitc-...
tmpfs Mounts: github.com/mili-sucevic/hitc-...
🌐 Stay Connected:
Discord Community: / discord
Medium: / headinthecloudsonline
Instagram: / headintheclouds.online
🎶 Downtown Walk by | e s c p | www.escp.space
escp-music.bandcamp.com

Пікірлер: 6
@MadanNeelapu
@MadanNeelapu 2 ай бұрын
Q. So what's the difference between "Host" volumes and Bind Mount ? Thank you for sharing your knowledge. It is helping me a lot. Especially the practical examples and use cases.
@headintheclouds.online
@headintheclouds.online 2 ай бұрын
That’s a great question, thanks for your comment! 🙌🏻 Host volumes are managed by Docker and stored in a dedicated location on the host such as ‘/var/lib/docker/volumes/’. They’re easier to use and more portable since Docker handles their creation and management. Bind mount volumes on the other hand directly map a specific host directory to a directory in the container. This gives more control and flexibility, which is useful for development or when you need direct access to the files on the host. In a nutshell: host volumes are best for general persistence, while bind mounts are ideal for situations like having a specific host paths. You are very welcome! We’re here to grow together 🌱☺️
@richthekid7522
@richthekid7522 Ай бұрын
Thanks so much for the docker series, learnt alot!. I hope you can also touch on other tools in the future 😊
@headintheclouds.online
@headintheclouds.online Ай бұрын
You are very welcome! Really pleased to hear that 🤗 We’re currently working on Kubernetes series so stay tuned for more! 🚀
@continental_drift
@continental_drift 2 ай бұрын
It looks like the best place to store things like connection strings for external databases and configuration is in a "Bind Mount", is that correct?
@headintheclouds.online
@headintheclouds.online 2 ай бұрын
Thanks for your message! ☺️ Using a bind mount might seem convenient, however it's not the most secure option out there. Instead, consider leveraging Docker secrets or env variables to keep your data safe and sound 🔐
DOCKER | Third-Party Images with Examples
29:15
headintheclouds
Рет қаралды 301
98% Cloud Cost Saved By Writing Our Own Database
21:45
ThePrimeTime
Рет қаралды 341 М.
Как бесплатно замутить iphone 15 pro max
00:59
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 8 МЛН
ПОМОГЛА НАЗЫВАЕТСЯ😂
00:20
Chapitosiki
Рет қаралды 2,5 МЛН
Советы на всё лето 4 @postworkllc
00:23
История одного вокалиста
Рет қаралды 4,6 МЛН
Inside DOCKER | Exploring Namespaces, cgroups, and more!
21:03
headintheclouds
Рет қаралды 1,4 М.
How I deploy serverless containers for free
6:33
Beyond Fireship
Рет қаралды 474 М.
The cloud is over-engineered and overpriced (no music)
14:39
Tom Delalande
Рет қаралды 529 М.
Is this my Fault?
15:41
Linus Tech Tips
Рет қаралды 2 МЛН
Using docker in unusual ways
12:58
Dreams of Code
Рет қаралды 429 М.
Ultimate Docker Compose Tutorial
1:03:14
TechWorld with Nana
Рет қаралды 159 М.
How to Save Docker Data using Bind Mounts or Volumes
13:41
Database Star
Рет қаралды 30 М.
Microsoft Is KILLING Windows | ft. Steve @GamersNexus
19:19
Level1Techs
Рет қаралды 305 М.
Learning Docker // Getting started!
35:56
Christian Lempa
Рет қаралды 106 М.
Vision Pro наконец-то доработали! Но не Apple!
0:40
ÉЖИ АКСЁНОВ
Рет қаралды 525 М.
Xiaomi SU-7 Max 2024 - Самый быстрый мобильник
32:11
Клубный сервис
Рет қаралды 553 М.
#samsung #retrophone #nostalgia #x100
0:14
mobijunk
Рет қаралды 14 МЛН