This paper presents the gravitational-wave measurement of the Hubble constant H0 using the detections from the first and second observing runs of the Advanced LIGO and Virgo detector network. The presence of the transient electromagnetic counterpart of the binary neutron star GW170817 led to the first standard-siren measurement of H0. Here we additionally use binary black hole detections in conjunction with galaxy catalogs and report a joint measurement. Our updated measurement is H0=68+14−7km s−1Mpc−1 (68.3% highest density posterior interval with a flat-in-log prior) which is a 7\% improvement over the GW170817-only value of 68+18−8km s−1Mpc−1. A significant additional contribution currently comes from GW170814, a loud and well-localized detection from a part of the sky thoroughly covered by the Dark Energy Survey. Inclusion of contributions from all binary black hole detections entails a thorough marginalization over unknown population parameters. With numerous detections anticipated over the upcoming years, an exhaustive understanding of other systematic effects are also going to become increasingly important. These results establish the path to cosmology using gravitational-wave observations with and without transient electromagnetic counterparts.