Terraform: Provide credentials for docker hub registry
Docker registry credentials is seting up in provider configuration.

provider "docker" {
  registry_auth {
    address = "quay.io:8181"
    username = "someuser"
    password = "somepass"
  } 
}


Also possible to set env variables DOCKER_REGISTRY_USER and DOCKER_REGISTRY_PASS