If your GE washer seems like is banging the sides of the cabinet during the spin cycle, the problem could be broken or stretched damper straps.
These washers use four rubber straps to keep the tub assembly in the middle of the cabinet. When one or more of the rubber straps breaks, the tub assembly will bang against the cabinet.
To check them out you will need to remove the front and top panels.
To see how to check & replace the damper straps, view the video below
Below are the links to the parts needed for this repair.