This term goes back to the 1968 Prague spring.
It was an uprising, an attempt by the Czechoslovak communist party at reformation towards more democracy and freedom of the press. Then troops from other members of the Warsaw pact marched in and subdued it.
From then on, communists who supported more democracy and freedom called the pro-quelling communists “tankies” as they marched in with tanks.
Logarithmus Naturalis