Example #1
0
        private static void SetupAuth(string repository)
        {
            //Console.WriteLine(docker_pull_api_url + repository + ":pull");
            var res = HttpRequests.GetResponseJson(docker_pull_api_url + repository + ":pull").Result;

            HttpRequests.ClientSetBearerAndType(res["access_token"].ToString(), "application/vnd.docker.distribution.manifest.v2+json");
        }