Docker Shadowsocks not work with ip route

Hi, I tried to install a socks5 docker in container, which prompted running, but I tried to forward docker (172.17.0.2) traffic to the subnet (192.168.88.0) through ip route, which could not be achieved.
I have learned that ip route can only forward layer 3 protocols, and socks5 is on layer 7, so I would like to ask you how to do this in routerOS?