The best way to store rice in a container is to keep it in an airtight, opaque container to protect it from light and moisture. First, ensure the rice is thoroughly dried before storage to prevent clumping. Store the container in a cool, dry place away from direct sunlight and heat sources. For long-term storage, consider using vacuum-sealed bags or adding a desiccant to absorb excess moisture. Always check for any signs of pests or spoilage before using the rice.