Authenticate to Docker registry before running memory measurement
Because images can not be pulled without authentication from dev.gitlab.org registry, we need to authenticate before attempting to create the image. Else, we will see issues like https://dev.gitlab.org/gitlab/omnibus-gitlab/-/jobs/5260740
/cc @qzhaogitlab