How-To Move Docker Container to Another Host With their Data - Bind Mound method

  Рет қаралды 49,168

ElastiCourse

ElastiCourse

Күн бұрын

How-To Move Docker Container to Another Host With their Data - Bind Mound method
Commands needed to backup / snapshot a docker container and copy over to another host, deploy the snaphot docker image on new host and follow with manual data copy over to new host to maintain same data between the two hosts.
===========================
Network Security courses on ElastiCourse/Udemy:
Introduction to Fortigate Firewall
www.elasticour...
www.udemy.com/...
Fortigate Advanced Configuration
www.elasticour...
www.udemy.com/...
Introduction to FortiManager course
www.elasticour...
www.udemy.com/...
===========================
AWS Web Application deployment and migration course
www.elasticour...
www.udemy.com/...

Пікірлер: 49
@LoWangSmg
@LoWangSmg Ай бұрын
Best explanation so far ! Thanks
@Vandy5000
@Vandy5000 4 жыл бұрын
This is the best video I found for me (a beginner) to understand.
@arex2006
@arex2006 2 жыл бұрын
great, greater, you are the greatest. With this video i was able to smoothly migrate my containers from old dell t7500 with a lot of power consumed to a brand new dell wyse 5070 running xpenology with only 10W TDP
@geetharaghuram8887
@geetharaghuram8887 3 жыл бұрын
This is life saver to me! I am beginner and creating a docker project. Created an nginx customized image and did not have idea on how to package along with the html. Thanks a zillion!!
@jamesT008
@jamesT008 2 жыл бұрын
Precise information...no hunky junky talk. Apreciated!
@bhaveshjoshi5028
@bhaveshjoshi5028 3 жыл бұрын
Was searching for a simple and to the point video - found it here ., Many Many Thanks - please make more videos..,!!
@andresantana9148
@andresantana9148 2 жыл бұрын
I wish I could like 1000x because this video was super useful. Thank you.
@pitwyman
@pitwyman 6 ай бұрын
I didn't know you could go from a container on Linux to a container on Windows ! thanks for the tips ;)
@mridulchoudhary3010
@mridulchoudhary3010 3 жыл бұрын
Thanks a ton !!! I just started learning Docker & was having this doubt about packaging the container along with data stored in corresponding volumes . It would be really helpful if you could create a full series on Docker , Docker-compose .
@ElastiCourse
@ElastiCourse 3 жыл бұрын
Sure. I have 4 videos on Docker so far, with more to come.
@fithawighide6589
@fithawighide6589 2 жыл бұрын
Thank you for making this video.
@philsipad
@philsipad 3 жыл бұрын
You left out the most important piece - moving the volumes and deal with the file access attributes aftermath. There is really no need to move the container as you can always pull a new container from the docker hub on the new host. The volumes are what hold the data that define the system.
@ElastiCourse
@ElastiCourse 3 жыл бұрын
Correct, volumes are important piece to move as well, but unfortunately there is no simple way to move them other than copying them over manually or using paid 3rd party services.
@berizzian
@berizzian 3 жыл бұрын
Great video. Im thinking twice about using docker for some production applications its really concerning to see containers are not really self contained. They are still fun though :)
@umitkirtil
@umitkirtil 2 жыл бұрын
thank you so much. you are a life saver
@victorcandiani
@victorcandiani Жыл бұрын
Man, you're fucking awesome. Congrats.
@MAXimator70
@MAXimator70 2 жыл бұрын
thanx a lot for this awesome tutorial!
@killua_148
@killua_148 9 ай бұрын
Hi, why do you use docker commit instead of using the official image? Isn't just copying the bind mounts enough?
@ElastiCourse
@ElastiCourse 4 жыл бұрын
*Please note:* *docker save [image] > file.tar* followed by *docker load < file.tar* Might not work if the save and load are executed on a different OS. Always use: *docker save [image] -o file.tar* followed by *docker load -i file.tar*
@aszuts
@aszuts 2 жыл бұрын
Very nice work! One key point for me: I have to copy the docker run parameters with my image. (all the port mappings, volume mappings etc.) Without run parameters it is only an image. I wonder why there is no option to export container start parameters. It would be easier to share containers with my colleagues.
@ElastiCourse
@ElastiCourse 2 жыл бұрын
you can save a container with all the custom ports and everything using Docker Compose, you just create a text file in YAML format with all that. Example on Pi-hole here github.com/pi-hole/docker-pi-hole
@BrianThomas
@BrianThomas Жыл бұрын
Thank you for the video. Does it make a difference if I used Yacht to install the container? I have 1 container that has about 100G of data that I need to move to another machine so that I can nuc it and install a different OS on it. I was just looking for a simple way of doing it.
@ElastiCourse
@ElastiCourse Жыл бұрын
should be the same process.
@swarnashissarkar4767
@swarnashissarkar4767 3 жыл бұрын
Excellent!!!
@jkdjdon
@jkdjdon 3 жыл бұрын
I'm not getting bind mounts on save! Like you got in dns folder. Is there anything I'm doing wrong?
@ElastiCourse
@ElastiCourse 3 жыл бұрын
Can you show me you docker run command to verify, you could be using wrong syntax in the -v command, which differs based on OS type (Windows, Mac. Linux)
@ariefilkom46
@ariefilkom46 3 жыл бұрын
now that the container in your windows env use the pieholebackup image, what do you do if you want to use the latest piehole (official) image then?
@ElastiCourse
@ElastiCourse 3 жыл бұрын
very good question. Follow the steps in this video first to migrate the container to another host, then follow this video to update to newer images when available kzfaq.info/get/bejne/bZyIlteXx8XVeWw.html
@shaunpx1
@shaunpx1 Жыл бұрын
Where did you copy the dns folder on windows? Did you zip and copy the files over? Did you unzip then on the desktop? The pwd shows etc-bin not bin?
@jai-yadav
@jai-yadav 3 жыл бұрын
Perfect! 👌🏻
@vladyslavliebiediev8057
@vladyslavliebiediev8057 2 жыл бұрын
Thank you.
@Pranavdazzler
@Pranavdazzler Жыл бұрын
is there any another way,,,because i got question in interview
@larrybud
@larrybud 3 жыл бұрын
it's crazy there's not an import/export container function which saves all of the settings. What a PITA
@ElastiCourse
@ElastiCourse 3 жыл бұрын
I always thought the same. It's complicated for one script to be able to accommodate all different variables and settings one can add to a container run config, unless built by Docker directly. It gets even worse when said container is part of a stack (Docker Compose) or project name. If you can get used to writing a little bit more code you will really enjoy Docker.
@premkumarmani1380
@premkumarmani1380 2 жыл бұрын
hope we can use the same steps if I migrate the base machine from centos to ubuntu?
@ElastiCourse
@ElastiCourse 2 жыл бұрын
Centos use different package manager and different shell commands, by SQL commands and docker commands should be exactly identical
@MrRuffythemonkey
@MrRuffythemonkey 3 жыл бұрын
who makes the backups of images that are always available. It would be more interesting how one can store containers variably.
@ElastiCourse
@ElastiCourse 3 жыл бұрын
Can you elaborate more on what you mean by storing containers variably? Container images and container data are independent.
@MrRuffythemonkey
@MrRuffythemonkey 3 жыл бұрын
@@ElastiCourse environment variables and networksettings etc. for example passwords Sql password etc.
@ElastiCourse
@ElastiCourse 3 жыл бұрын
The best solutions for storing sensitive information like SQL passwords would be: 1. Docker Secrets (Requires Swarm services to be enabled) 2. Kubernetes Secrets (Requires kubectl) 3. HashiCorp Vault (3rd party, same company that makes Terraform)
@guyh3403
@guyh3403 3 жыл бұрын
For some reason I get an error when saving the .tar "no space left on device". I run Docker on a Synology 218+ with 10Gb ram. The Image is approx 1Gb. /dev/md0 is at 100% Odd huh?
@ElastiCourse
@ElastiCourse 3 жыл бұрын
I'm not sure about docker limitation on Synology devices. You should have no issues running that image on a windows, mac or linux with Docker Engine running.
@guyh3403
@guyh3403 3 жыл бұрын
@@ElastiCourse Got an easy fix for future reference. Save the file outside $pwd at /volume1/...
@joshuasmith2814
@joshuasmith2814 Жыл бұрын
great video but man is docker a PITA to work with, there's got to be a better way to manage containers than this.
@ElastiCourse
@ElastiCourse Жыл бұрын
There is a learning curve, but I must appreciate what Docker brings to the table from ultra speed to reliability and ease of use. For easier solutions to get used to it check my other video on using Docker easy GUI with templates kzfaq.info/get/bejne/nbeZfLmrs8nDl6M.html
@tecint
@tecint 2 жыл бұрын
Where is the video content in files?
@honaga79
@honaga79 3 жыл бұрын
tuyệt vời
@dazoedave
@dazoedave 3 жыл бұрын
Title should be How-To Move Docker Container to Another Host With *Bind Mounts*
@ElastiCourse
@ElastiCourse 3 жыл бұрын
Makes more sense, thanks.
Backing up your Docker Configurations and Data.
17:40
Awesome Open Source
Рет қаралды 31 М.
Migrate Docker Volumes from one Host to another // backup and restore
8:56
مسبح السرير #قصير
00:19
سكتشات وحركات
Рет қаралды 2,5 МЛН
OMG what happened??😳 filaretiki family✨ #social
01:00
Filaretiki
Рет қаралды 13 МЛН
Cute kitty gadgets 💛
00:24
TheSoul Music Family
Рет қаралды 17 МЛН
How to update Docker container in less than 5 Minutes
9:10
ElastiCourse
Рет қаралды 18 М.
100+ Docker Concepts you Need to Know
8:28
Fireship
Рет қаралды 932 М.
How to Save Docker Data using Bind Mounts or Volumes
13:41
Database Star
Рет қаралды 30 М.
you need to learn Docker RIGHT NOW!! // Docker Containers 101
23:19
NetworkChuck
Рет қаралды 2,7 МЛН
Export Docker Container Settings as Docker Compose Stack
8:12
Docker Crash Course for Absolute Beginners [NEW]
1:07:39
TechWorld with Nana
Рет қаралды 1,6 МЛН
OpenSSH for Absolute Beginners
23:00
Veronica Explains
Рет қаралды 106 М.
Docker Backup and Restore Made EASY with Restic
8:51
Jim's Garage
Рет қаралды 17 М.
Самый дорогой телефон 2000х
0:54
МАДНЕСС
Рет қаралды 2,6 МЛН
Электронный звонок #shorts
0:26
TheBestBike
Рет қаралды 684 М.
Покупка бюджетного ПК на Wildberries? 🤬
0:59
Вэйми
Рет қаралды 1,4 МЛН
💀СЛОМАЛ Айфон за 5 СЕКУНД😱
0:26
Demin's Lounge
Рет қаралды 794 М.
Фирменный ПК от ACER за 10 тысяч рублей.
34:38
Ремонтяш
Рет қаралды 298 М.
Тест Ryzen AI 9 HX 370 и графики 890m
27:29
PRO Hi-Tech
Рет қаралды 99 М.