Hello, i just got started with docker and i am planning to base my IT-Infrastructure upon Docker. (1 Develper, a few customers) I have setup Docker on my Ubuntu Server and created a Test-Container, and i love it, deployment was so easy, i have stopped my container and restarted it, and all data is here. i am happy. What i do not understand behind docker is the hardware/OS abstraction, so please correct me if i am wrong:
? Docker does not abstract any hardware like a Virtual Machine does
? Docker runs ON the guest OS and has its features
? i can backup and restore a container on the SAME Machine.
? i CANNOT restore a container on a DIFFERENT docker machine, because the Hardware and the OS under it is different.
my goal for the new infrastructure is to make backup and restore much easier, since i do not want to learn how every single solution has to be backed up and restored. i have allready lost all my systems because of this lazyness, so i wanna do better this time…
So heres the basic idea of the new Setup:
- i run a VM on my current Server in order to abstract the hardware, so i dont get huge problems if my current server hardware R.I.Ps
- The VM runs a ???-Linux Distribution with Docker installed. I keep a backup of the [Initial Zero-Docker-Images VM].
- All Services are installed as Docker Containers.
- Every day, a cronjob on the Host VM stops every container, makes a backup, and restart it. (no need for 24/7)
- This Container-Backup can be restored on any copy of my VM Backup of [Initial Zero-Docker-Images VM]. on any hardware that is able to run the VM.
thanks for reading, Tom