while the military is mostly hardline conservative and is considerably made up of incompetent man-children, outright explicit racism is a very rare occurrence
Not only is the fraternal concept of the military a real thing (you walk away with lifelong friends and experiences), but the military is very much a modern day organization with HR, Internal Affairs (IG), Legal, etc so you have weapons against fukkery behavior like racism.
Prolly the least racist place I ever been in my life (the Army)
Once I got out...it was like a slap across the face...back to reality.