Esempio n. 1
0
        public void CanFindFile()
        {
            var image = dockerHub.GetImages("library/ubuntu", "16.04").First();
            var layer = dockerHub.FindFile("library/ubuntu", image, "/bin/bash");
            var data  = dockerHub.GetFile("library/ubuntu", layer, "bin/bash");
            var hash  = BitConverter.ToString(System.Security.Cryptography.SHA256.Create().ComputeHash(data)).ToLower().Replace("-", string.Empty);

            Assert.AreEqual("3d74ea46393deee0ff74bfbfd9479242b090f20ebffe9a27f572679f277153ed", hash);
        }