Can I use multiple docker containers on a computer as Kubernetes worker nodes?

I want to configure a Kubernetes cluster with only Docker containers without using vm on one machine. I think it will be, but I ask because it may not be.

Source: StackOverflow