A digital certificate "contains" a public key, along with some other information. The other information often includes a host name, and the certificate may be digitally "signed" by certificating authority. Digital certificates do not contain private keys.
Certificates contain public keys because the purpose of the certificate includes providing the public key to clients.
Since certificates don't contain private keys, there is no notion of "public" versus "private" certificates.