Carter was found to have taken the prohibited substance methylhexaneamine, the International Olympic Committee (IOC) said on Wednesday, meaning Jamaica's 4x100 metres relay team must give back their gold medals.
Bolt is considered one of the greatest sprinters of all time, having won an unprecedented treble of consecutive golds in the 100m, 200m and 4x100 relay in three straight Olympics.
Bolt was sleeping after a training session and unavailable to comment on Wednesday but in June, when sources familiar with the case told Reuters that Carter had failed a doping test, he was philosophical about the prospect of losing a gold medal.
"It's heartbreaking (the positive test) because over the years you've worked hard to accumulate gold medals and work hard to be a champion... but it's just one of those things," Bolt said.
"Things happen in life, so when it's confirmed or whatever, if I need to give back my gold medal I'd have to give it back, it's not a problem for me."
Trinidad and Tobago are set to be promoted to gold in the Beijing 4x100, in which Jamaica set a then world record, with Japan moving up to silver and fourth-placed Brazil earning bronze.