In simple terms, how does a Docker image/container work on another machine that doesn't have an OS?
It seems like with VMs, if you have a machine A with OS A and machine B with OS B and you want to run your code that originated from machine A on machine B, the VM installed on machine B will run OS A so it will work with your code from machine A.
But with Docker, does both machine A and machine B have to have OS A already installed? Or does machine A still have OS A and machine B has nothing and the Docker image/container is run on machine B and creates something similar to OS A in order for it to work on machine B?