Did you read the instructions on sonarr.tv?
Specifically under https://sonarr.tv/#downloads-v3-docker