mirror of
https://github.com/aphrody-labs/WSL.git
synced 2026-10-15 06:09:04 +00:00
20 lines
368 B
Markdown
20 lines
368 B
Markdown
# PullImageOptions
|
|||
|
|
|
||
|
|
```csharp
|
||
|
|
public sealed class PullImageOptions
|
||
|
|
{
|
||
|
|
public PullImageOptions(string uri);
|
||
|
|
|
||
|
|
public string Uri { get; set; }
|
||
|
|
public string RegistryAuth { get; set; }
|
||
|
|
}
|
||
|
|
```
|
||
|
|
|
||
|
|
Example:
|
||
|
|
|
||
|
|
```csharp
|
||
|
|
var pullOptions = new PullImageOptions("docker.io/library/alpine:latest")
|
||
|
|
{
|
||
|
|
RegistryAuth = string.Empty // optional for public registries
|
||
|
|
};
|
||
|
|
```
|