A dust container for an autonomous cleaner. The dust container includes: a container wall enclosing a dust chamber; a first side; a second side; an inlet opening to the dust chamber for dust particles and air arranged in the first side of the container; an outlet opening from the dust chamber for air arranged in the second side of the dust container; and a filter arranged in the dust container such that the flow of air through the dust container pass through the filter. Also provided is an autonomous cleaner having the dust container.