[container] added state function and ContainerState data type