Could be a bit cool and wet towards the end of August, but probably not too bad.
Key issue is big ship or small ship. Big ships go to larger cities (Juneau etc.) Small ships can go to other neat places such as Elfin Cove, but the small ships generally don't offer the luxury suites etc.
At the beginning or end, take the train from Anchorage to Denali Park if you have time.