They most certainly are not. That's a common misbelief. Containers are not designed as a security boundary, they just happen to function as one most of the time.
VMs on the other hand actually are designed as a security boundary, but even then there are still attacks you can do against other VMs on the same box.
VMs on the other hand actually are designed as a security boundary, but even then there are still attacks you can do against other VMs on the same box.