Fix container configuration storage.

Keep the key string around, so the hash won't point off into random
memory.