Skip to content

Commit

Permalink
Add additional examples logins to results page
Browse files Browse the repository at this point in the history
Prior to this, there was not an easy copy/paste line for people not
using Docker. This addes example lines that can be copy/pasted for
those of us who use Podman / Podman Desktop and containerd's nerdctl.

For context, nerdctl is the default way of interacting with containers
run within Lima (https://lima-vm.io) and is how I run x86 containers
on an Apple Silicon Mac.
  • Loading branch information
genebean committed Feb 28, 2024
1 parent fde9a9f commit ba37ec1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion auth_server/authn/data/github_auth_result.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,11 @@
<body>
<p class="message">
You are successfully authenticated for the Docker Registry{{if .Organization}} with the <code>@{{.Organization}}</code> Github organization{{end}}.
Use the following username and password to login into the registry:
Log into the registry using one of these commands:
</p>
<hr>
<pre class="command"><span>$ </span>docker login -u {{.Username}} -p {{.Password}} {{if .RegistryUrl}}{{.RegistryUrl}}{{else}}docker.example.com{{end}}</pre>
<pre class="command"><span>$ </span>podman login -u {{.Username}} -p {{.Password}} {{if .RegistryUrl}}{{.RegistryUrl}}{{else}}docker.example.com{{end}}</pre>
<pre class="command"><span>$ </span>nerdctl login -u {{.Username}} -p {{.Password}} {{if .RegistryUrl}}{{.RegistryUrl}}{{else}}docker.example.com{{end}}</pre>
</body>
</html>

0 comments on commit ba37ec1

Please sign in to comment.