Sorry, but dogs are not allowed on the course for any of the distances, unless they are service animals specifically trained to aid a person with a disability. They are not recommended with the crowds and because the courses can be narrow at parts.
For the 5K, please see here for the Aquarium's Service Animal Policy.