The chemical reactions and pathways involving a 2'-deoxyribonucleotide, a compound consisting of 2'-deoxyribonucleoside (a base linked to a 2'-deoxyribose sugar) esterified with a phosphate group at either the 3' or 5'-hydroxyl group of the sugar.