Skip to content

Try docker login if docker registry username and password are defined#2233

Merged
wangxin merged 2 commits intosonic-net:masterfrom
wangxin:docker-login-pr
Sep 21, 2020
Merged

Try docker login if docker registry username and password are defined#2233
wangxin merged 2 commits intosonic-net:masterfrom
wangxin:docker-login-pr

Conversation

@wangxin
Copy link
Copy Markdown
Collaborator

@wangxin wangxin commented Sep 17, 2020

Description of PR

Summary:
Fixes # (issue)

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • Test case(new/improvement)

Approach

What is the motivation for this PR?

Not all docker registry have anonymous access enabled. Run testbed-cli.sh add-topo may fail with pull PTF docker image to create PTF container.

How did you do it?

This commit added code to try docker login if docker registry username and password are defined.

How did you verify/test it?

Logout from docker registry. Run add-topo. The scripts can automatically login to docker registry.

Any platform specific information?

Supported testbed topology if it's a new test case?

Documentation

Not all docker registry have anonymous access enabled. This commit
added code to firstly pull docker image. If pull failed, then try docker
login.

Signed-off-by: Xin Wang <xiwang5@microsoft.com>
@wangxin wangxin requested a review from a team September 17, 2020 13:47
@wangxin wangxin changed the title Try docker login if docker pull failed Try docker login if docker registry username and password are defined Sep 18, 2020
@wangxin wangxin merged commit 72cbbf3 into sonic-net:master Sep 21, 2020
@wangxin wangxin deleted the docker-login-pr branch September 24, 2020 02:35
kazinator-arista pushed a commit to kazinator-arista/sonic-mgmt that referenced this pull request Mar 4, 2026
swss

081d47b Update netlink messages handler (sonic-net#2233)
de7c3eb [IntfMgrd] Retry adding ipv6 prefix by setting disabled_ipv6 flag  (sonic-net#2267)

utilities

2716ff2 [yang] extend ConfigMgmt constructor to pass YANG options (sonic-net#2118)
9fbe2ef [debug dump] dump interface module added (sonic-net#2070)
a86da2d Add sonic-delayed.target to Application Extension .timer file generator (sonic-net#2176)
90611dd [portconfig] Allow to configure interface mtu for physical ports only
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants