After Socialism emerged from the French Revolution in the 1790's, Communism and Anarchism were on the same side until after the Paris commune in 1871. Karl Marx knew Alexander Bakunin and borrowed ideas from Proudhon. The experience of the Paris commune raised questions of the role of the state in the immediate aftermath of a revolution. These divisions between Anarchists and Social Democrats split the First international in the 1870's and 1880's.
So Communists are not strictly "against" anarchy, they take the view that the working class needs a "state" to defend itself immediately after the revolution until the division of society in to classes and the class struggle has waned and the state will "wither away". Anarchists generally believe that a stateless society and individual freedom is a natural condition of man, whereas Marxists believe it requires a specific process of social-historical evolution to achieve a stateless society.
In his youth, Stalin wrote a draft for an article on
"Anarchism or Socialism?" which set out the differences between them. Where this get's complicated is that the Soviet Union under Stalin developed the view that the state must defend the economic base, so the power of the state as the "dictatorship of the proletariat" must be maximised to prevent a counter-revolution and the restoration of capitalism. Consequently talk of the "withering away of the state" was treated as both premature and "counter-revolutionary" in the 1930's.
In Marxist theory, North Korea, China, Cuba, Vietnam and Laos remained committed to the withering away of the state. They do not intend to be "dictatorships" forever, but only so long as the transition period from capitalism to communism requires. I would guess therefore that, as Marxist-Leninists, Kim Jong Un and Xi Jing Ping will still basically believe in the withering away of the state and the necessity of a stateless society as part of communism.
In so far as it is consistent with Marxism-Leninism, the goal of North Korean society is to become ultimately a stateless, "anarchist" society....
and yes... I know how insane that sounds..but that's the Marxist dialectic for you.
It's what makes Kim Jong Un think he's the good guy trying to free us all from our evil capitalist masters under the radioactive glow of some mushroom clouds. Nuking America is the socialist path to Freedom.