You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/docs/advanced/private-registries/index.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -2,11 +2,11 @@ Trivy can download images from a private registry without the need for installin
2
2
This makes it easy to run within a CI process.
3
3
4
4
## Login
5
-
You can log in to a private registry using the `trivy auth login` command.
5
+
You can log in to a private registry using the `trivy registry login` command.
6
6
It uses the Docker configuration file (`~/.docker/config.json`) to store the credentials under the hood, and the configuration file path can be configured by `DOCKER_CONFIG` environment variable.
1. Set credentials cautiously and only when necessary.
26
-
2. Prefer using `trivy auth config` to pre-configure credentials with specific registries, which ensures credentials are only sent to appropriate registries.
26
+
2. Prefer using `trivy registry login` to pre-configure credentials with specific registries, which ensures credentials are only sent to appropriate registries.
27
27
28
28
Trivy also supports providing credentials through CLI flags:
0 commit comments