using curl image to run register commands