A nebulizer as well as a container with a fluid for such a nebulizer are proposed. The container comprises a control device which indicates initially an unused state of the container before first use. An indicator device stops via a locking device further use of the container in a locked state when a predetermined number of uses has been reached or exceeded. After replacement of the container, the nebulizer can be reset and used again.