Create and delete container when needed