Skip to content

Small CLI Application to Import Docker Images from other registries

Notifications You must be signed in to change notification settings

JasonWhall/go-acr-importer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-acr-importer

A Go CLI app to help import images into Azure Container Registry

This app will import public container images specified into your private ACR instance.

Prequisites

  • Azure Container Registry Instance
  • Service Principal or User with Contributor permissions on the Container Registry Instance

Usage

Build the application

$ go build .

Run the application

Using azure-cli authenticated session:

go-acr-importer --ResourceGroupName "MyResourceGroup" \
                --DestinationRegistryName "MyAcrName" \
                --ImageNames "docker.mycompany.io/example/app:v1, docker.mycompany.io/example/app:latest"

Using MSI:

go-acr-importer --ResourceGroupName "MyResourceGroup" \
                --DestinationRegistryName "MyAcrName" \
                --ImageNames "docker.mycompany.io/example/app:v1, docker.mycompany.io/example/app:latest"
                --MSIAuthentication

Using Explicit Service Principal Credentials:

go-acr-importer --ResourceGroupName "MyResourceGroup" \
                --DestinationRegistryName "MyAcrName" \
                --ImageNames "docker.mycompany.io/example/app:v1, docker.mycompany.io/example/app:latest" \
                --SubscriptionId "00000000-0000-0000-0000-000000000000" \
                --TenantId "00000000-0000-0000-0000-000000000000" \
                --ClientId "00000000-0000-0000-0000-000000000000" \
                --ClientSecret "SecretSauce"

Help:

go-acr-importer --help

About

Small CLI Application to Import Docker Images from other registries

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages