A number of projects I use are moving towards docker deployments. I admit I know very little about docker as a technology so I really need to learn.
My first question is around the install foundation. I currently have a dedi which is running proxmox, I can’t really justify another dedi just for playing. Can I install docker alongside proxmox (is this a good idea) can I spin up a VM and nest the virtualisation?
Yeah, while I do love Docker for a lot of reasons, I wish project maintainers still provided instructions on installing an application without using Docker.
To answer your questions, Docker will run just fine alongside Proxmox (this is what I do). It will also run just fine within a VM as long as it’s KVM and not just a container
The only time I used Docker was to install Zammad, it was way easier yo get it up running but I feel like its harder for maintaining the services you used it for.
It’s great for the most part, just a bit annoying for certain setups. I would recommend installing Portainer as a docker container to manage your other containers Provides a nice web UI if you prefer that over CLI.
You can’t run Docker within containers that run within the user space. These are called light-weight containers and one of those are OpenVZ and LXC. On the other hand, KVM, Xen, VMWare and other “hardware virtualization” technologies that load a custom kernel and separate hardware components into the logical abstractions can easily run Docker within the VM itself because the VM is not aware that it is being virtualized.
We have a couple of clients running Docker and our documentation on installing CrossBox inside of a Docker container can give you a general idea on how to get some software working within Docker. It is relatively easy and usually, the most difficult part is port mapping (passing the traffic from the host node to the Docker container). You install everything else as usual after you enter the container’s bash.
Personally, Docker is really good and one of the few things that I hate doing is entering a Docker container:
I’ve ran Docker within an LXC container on a KVM VPS, so it’s definitely possible. You just need to ensure it’s a privileged container, and it also requires LXC nesting to be enabled (security.nesting option).
In my case I have a KVM VPS with BuyVM, which has several LXC containers on it, and one of the LXC containers is running a few Docker images. Works fine.
Run it inside another VM. That is the best way of going about it. I’d also suggest checking out things like docker swarm and kubernetes as that is where docker is really headed.
I have no idea how good it is, as i only just recently found it, but https://www.katacoda.com/courses/docker
was recommended on one google repo i was reading earlier as introduction to docker and looks pretty good, basically codecademy style course.
couple first scenarios can be done without account,but after that you just need an account, but still free AFAIK (i literally just signed up as i was typing to confirm i can skip to the last part without payment lol)
never heard of them before tho, but they seem to have bunch of interesting courses on different services/solutions