Is there an existing issue for this?
Is your feature request related to a problem? Please describe the problem.
I'd like to see the Aspire CLI include a pull command to enable pulling down/ updating the required images locally, in much the same way docker pull {image}:{tag} does for specific images, or docker compose pull does for docker-compose.y{a}ml files.
var sqlServer = builder
.AddAzureSqlServer("sqlserver")
.RunAsContainer(container =>
container.WithImage(Platform.ContainerDetails.MsSqlImage).WithDataVolume()
);
In this example it would pull down the image defined in the WithImage method.
Describe the solution you'd like
> aspire pull --help
Description:
Pulls the latest versions of any Docker images used for in the AppHost
Usage:
aspire pull [options] [[--] <additional arguments>...]]
Options:
--apphost <apphost> The path to the Aspire apphost project file
--summary <Json|Table|None> Output format for pull results
-?, -h, --help Show help and usage information
-l, --log-level <Critical|Debug|Error|Information|None|Trace|Warning> Set the minimum log level for console output (Trace, Debug, Information, Warning, Error, Critical)
--nologo Suppress the startup banner and telemetry notice
--banner Display the animated Aspire CLI welcome banner
Additional context
The reason this is useful is not only ensuring the 'latest' version when people rely on the :latest tag, but primarily for when people are traveling and have little or no access to a stable internet connection. Enabling this feature would allow them to, much like a git pull, resolve the latest dependencies locally prior to travelling.
Is there an existing issue for this?
Is your feature request related to a problem? Please describe the problem.
I'd like to see the Aspire CLI include a
pullcommand to enable pulling down/ updating the required images locally, in much the same waydocker pull {image}:{tag}does for specific images, ordocker compose pulldoes fordocker-compose.y{a}mlfiles.In this example it would pull down the image defined in the
WithImagemethod.Describe the solution you'd like
Additional context
The reason this is useful is not only ensuring the 'latest' version when people rely on the
:latesttag, but primarily for when people are traveling and have little or no access to a stable internet connection. Enabling this feature would allow them to, much like agit pull, resolve the latest dependencies locally prior to travelling.