Skip to content

docs(sonic): correct the docker-sonic-vs download instructions - #3731

Open
roc-ops wants to merge 1 commit into
ipspace:devfrom
roc-ops:sonic-download-docs
Open

docs(sonic): correct the docker-sonic-vs download instructions#3731
roc-ops wants to merge 1 commit into
ipspace:devfrom
roc-ops:sonic-download-docs

Conversation

@roc-ops

@roc-ops roc-ops commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

Follow-up to #3680: the docker-sonic-vs download instructions I wrote in that PR were wrong in several places. I had never actually followed them — the image was already on my test box — so this corrects them after walking the path end to end and pulling SONiC 202605 build 1166687.

The route in the original text was right; five details were not.

  • The branch example was two years stale. 202405 was given as the example; the current list is master, 202605, 202511, 202505, 202411, 202405, 202311, 202305.
  • Cancelled builds sit beside successful ones and have Artifacts links too, so "pick the latest build" needs to say successful explicitly.
  • target/docker-sonic-vs-asan.gz sits directly next to target/docker-sonic-vs.gz in the artifact listing — an AddressSanitizer build, easy to take by mistake.
  • The download URL is constructible from branch and build ID, which beats scrolling a long listing; added with a working example.
  • The docker load guidance had both halves backwards. The archive already carries docker-sonic-vs:latest, so there is nothing to retag — and more importantly, docker load silently replaces an existing image with that tag, printing renaming the old one with ID ... to empty string and leaving the previous image untagged. Anyone following the old text to compare two builds would have lost the image they had. That is now a warning with a tag-first workaround.

Also adds a one-liner for identifying which build you ended up with (cat /etc/sonic/sonic_version.yml), which turned out to matter when comparing behaviour between builds.

Documentation only — no code, no template, no device changes.

Followed the instructions end to end for the first time and downloaded SONiC
202605 build 1166687 with them. The route is right; five things were wrong,
stale or missing:

* the branch example `202405` is two years old. The **vs** pipeline
  (definitionId 142) currently offers master, 202605, 202511, 202505, 202411,
  202405, 202311 and 202305 -- point at the newest release branch instead.
* *Build History* lists canceled builds next to successful ones, and they have
  an **Artifacts** link too, so "latest successful" needs saying more plainly.
  The result string in the table is `succeeded`.
* the artifact file list contains **docker-sonic-vs-asan.gz** directly beside
  **docker-sonic-vs.gz** -- an AddressSanitizer build, easy to grab by mistake.
* the download URL is constructible from the branch and build ID, which is much
  friendlier than scrolling a 1 MB file listing. Documented with a real example.
* `docker load` restores the tag `docker-sonic-vs:latest` -- it does not need
  retagging, but it *silently replaces* any existing image with that tag,
  printing "renaming the old one with ID ... to empty string". The old text
  ("retag it to docker-sonic-vs:latest if necessary") got both halves of that
  backwards. Added a warning and the tag-first workaround.

Also added the one-liner for checking which build an image is, since that turns
out to matter: `docker run --rm --entrypoint cat docker-sonic-vs:latest
/etc/sonic/sonic_version.yml`.

Verified against the platform table (vs really is at the bottom of the pipeline
list) and by completing the whole download-unpack-load-run sequence.
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.

1 participant