Push image to registry 2 , get Dial tcp 192.168.0.12:5000: getsockopt: network is unreachable

I have a private registry:2
Today ,image pushing rise error(on Macbook have set insecure-registry=192.168.0.12:5000 in docker profile) , it is OK before(on Macbook) ,and it’s OK on linux
The push refers to a repository [192.168.0.12:5000/u1/proj1]
Put http://192.168.0.12:5000/v1/repositories/u1/proj1/: dial tcp 192.168.0.12:5000: getsockopt: network is unreachable

howto let docker push to connect to v2 ,not v1

why is it v1/repositories ,not v2/repositories ?