Plane/Cube Collisions and manual movement

I’m very new to Unity3d, so please excuse my ignorance.

I basically have a box (six planes) which contains several cubes.
I want the cubes to fall around inside the box, while the box itself gets manually positioned by code (by setting the transform.position values).

The cubes fall around happily in the box, but when I move the box, the cubes fall through the walls.

I’ve tried using cubes for the box walls, which worked a little bit, but the small inner cubes either reacted very intensely or again fell through the walls.
I also tried setting the Collision Detection to Continuous, but to no avail.

Any help would be greatly appreciated.

well you probably figured it out by now but im fairly certain your only problem is your moving the big box with transform.position when you should be making sure your big box has Rigidbody.isKinematic set as true and you are using

function FixedUpdate () {

this will insure that the position is only being changed just before the physics calculations and prevent your objects from clipping thru the collider and falling through.
this will also allow friction to be considered by the physics engine.