Skip to content

Setting the mirror with mirror address.#28827

Closed
Hyzhou wants to merge 1 commit intomoby:masterfrom
Hyzhou:master
Closed

Setting the mirror with mirror address.#28827
Hyzhou wants to merge 1 commit intomoby:masterfrom
Hyzhou:master

Conversation

@Hyzhou
Copy link
Copy Markdown
Contributor

@Hyzhou Hyzhou commented Nov 25, 2016

- What I did

We can use the mirror address to setting the mirror. Only comply with the rules of url.
Because some user initialize the machine in Aliyun VPC environment And he can use the intranet mirror http://mirrors.aliyuncs.com/docker-engine.
By the way, if we add the option AliyunMirror or AliyunVPCMirror. More and more option will be added.

curl -sSL https://get.docker.com/ | sh -s -- --mirror http://mirrors.aliyun.com/docker-engine
curl -sSL https://get.docker.com/ | sh -s -- --mirror http://mirrors.aliyuncs.com/docker-engine
curl -sSL https://get.docker.com/ | sh -s -- --mirror https://mirror.azure.cn/docker-engine

- How I did it

- How to verify it

- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)

Signed-off-by: hyzhou.zhy hyzhou.zhy@alibaba-inc.com

Signed-off-by: hyzhou.zhy <hyzhou.zhy@alibaba-inc.com>
@vdemeester
Copy link
Copy Markdown
Member

/cc @tianon

@thaJeztah
Copy link
Copy Markdown
Member

I'm not sure we should change this to allow any arbitrary URL to be set; also this change would break https://github.com/Azure/azure-docker-extension/blob/0539b864cc6fd64ba1236a60443c006019eb7f10/op-enable.go#L49-L51

/cc @friism @dmp42

@ushuz
Copy link
Copy Markdown

ushuz commented Nov 27, 2016

Beside what @thaJeztah mentioned, I guess we shouldn't assume all mirrors are ending with /apt and /yum. Prefer #28858.

@tianon
Copy link
Copy Markdown
Member

tianon commented Nov 28, 2016

Agreed, I'm more partial to our script supporting an explicit set of "official" mirrors than simply allowing arbitrary mirrors. 👍

@thaJeztah
Copy link
Copy Markdown
Member

Let's close this PR in favor of #28858. We still have to discuss if we're ok with adding these mirrors, but we can do so on that PR

perhaps you can join the discussion there @Hyzhou?

@thaJeztah thaJeztah closed this Nov 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants