Пример #1
0
        public void TestGetHost_dockerIo()
        {
            string host = RegistryAliasGroup.GetHost("docker.io");

            Assert.AreEqual("registry-1.docker.io", host);
        }
Пример #2
0
 /** Construct with {@link #parse}. */
 private ImageReference(string registry, string repository, string tag)
 {
     this.registry   = RegistryAliasGroup.GetHost(registry);
     this.repository = repository;
     this.tag        = tag;
 }
Пример #3
0
        public void TestGetHost_noAlias()
        {
            string host = RegistryAliasGroup.GetHost("something.gcr.io");

            Assert.AreEqual("something.gcr.io", host);
        }