The voyage of the James Caird was a small-boat journey undertaken by Sir Ernest Shackleton and five companions from Elephant Island in the South Shetland Islands to South Georgia in the southern Atlantic Ocean, a distance of 800 nautical miles .