supports setting the default packaging policy by the constructor
arguments of the container.