Update the code format of implement docker registry driver