why can't map local path to docker's inside?
Oh! I have search for a while, it's should be like:

docker run -d --name=ak_registry  --restart=always -p 7900:5000   -v /data/.docker:/var/lib/registry    registry


Used /var/lib/registry instead of /tmp/registry