The Council of People's Commissars was formed after the Bolshevik revolution in 1917, and passed many decrees before the election of the constituent assembly in 1918 implementing socialism in Russia....
After the October Revolution and during the Russian Civil War, Trotsky was the Commissar of War. He organized the Red Army for Lenin and the Bolsheviks.