The Panama Canal has mechanical mules, but they are only used to keep ships on course, not to propel ships (https://en.wikipedia.org/wiki/Panama_Canal_locks#Mules)
Disadvantages of towing are that it requires a towpath alongside the water, that overtaking is difficult, and that making tight turns can be difficult (the puller always pulls the ship closer to the canal or river shore, requiring the use of the ship’s rudder to keep it on track. In tight turns, the pull direction is closer to orthogonal to the shore, requiring more rudder)
Because of these, I think battery-powered ships with container-sized batteries that can easily be swapped may be a better solution.