Docker networks have no restriction for outgoing traffic. Are you trying to restrict outgoing traffic from your containerized squid to a specific ip-range?
I have 1 main ip, and 256 failover ip.
At the moment I setup from main ip to one failover ip, but I dont know, how I can setup not single ip, but range?