In kopenhagen you can take the hoho-bus at the cruise terminal.
when we were there with the Eurodam, the bus stopped just outside the terminal.
tallin you can do on your own, take the bus to the city, take a cab to the upper part of the city and walk down.
How is the ship, we will be on it the 13h of August.
I hope this will help you.