The mass of a comet is much much lower than that of a planet like the Earth, so an atmosphere like ours could not be bound to a comet by gravity. However, when comets approach the Sun exposed ices on their surface begin to sublimate (turn to gas) which forms a gaseous coma around the cometary nucleus. Dust from the surface is also lifted off the surface of the comet by the gas pressure, some of which is blasted off into space to form the comet's tail, while some falls back to the comet's surface due to gravity. So a cometary coma is a little like a temporary atmosphere, but its composition and density are very different to the atmospheres of planets like the Earth.
The mass of a comet is much much lower than that of a planet like the Earth, so an atmosphere like ours could not be bound to a comet by gravity. However, when comets approach the Sun exposed ices on their surface begin to sublimate (turn to gas) which forms a gaseous coma around the cometary nucleus. Dust from the surface is also lifted off the surface of the comet by the gas pressure, some of which is blasted off into space to form the comet's tail, while some falls back to the comet's surface due to gravity. So a cometary coma is a little like a temporary atmosphere, but its composition and density are very different to the atmospheres of planets like the Earth.