support minimize for containers (fix #30)

@DorianScholz @tfoote @wjwwood Please review.