Skip to content

Commit e452098

Browse files
authored
Add env var insecure registry example (#598)
From 9.0.100 onwards
1 parent b3935d8 commit e452098

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/RegistryAuthentication.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,3 +114,13 @@ insecure = true
114114

115115
> [!NOTE]
116116
> You must restart Podman to apply any changes to this file
117+
118+
119+
### Environment Variables
120+
121+
Starting in 9.0.1xx, the SDK will also recognize insecure registries passed through the `SDK_CONTAINER_INSECURE_REGISTRIES` environment variable. This variable takes a comma-separated list of domains to treat as insecure in the
122+
same manner as the Docker and Podman examples above.
123+
124+
```shell
125+
SDK_CONTAINER_INSECURE_REGISTRIES=localhost:5000,registry.mycorp.com dotnet publish -t:PublishContainer -p:ContainerRegistry=registry.mycorp.com -p:ContainerBaseImage=localhost:5000/dotnet/runtime:8.0
126+
```

0 commit comments

Comments
 (0)