CVEs for breaking out of a docker container come along as well [1]. Usually you need root in the docker container, but if you combine it with an escalation from non-root to root.. well, you can see how that's less secure than a VM
[1] https://unit42.paloaltonetworks.com/breaking-docker-via-runc...