In 2007, Rockwell guest-starred in the web series "Casted: The Continuing Chronicles of Derek Riffchyn, Greatest Casting Director in the World. Ever." He appears opposite Jonathan Togo as Derek and Justin Long as Scott. Rockwell plays an aspiring young actor named Pete Sampras. In 2009, he starred in the critically acclaimed science fiction film "Moon", directed by Duncan Jones. His performance as a lonely astronaut on a long-term solo mission to the Moon was widely praised, with some critics calling for an Academy Award for Best Actor nomination. On May 3, 2010, it was announced that Rockwell would team up again with "Iron Man 2" director Jon Favreau for Favreau's adaptation of the graphic novel "Cowboys & Aliens". He played a bar owner named Doc who joins in the pursuit of the aliens.