-
-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pull latest container from private repo #84
Labels
Comments
Sorry not, via the Fluent API, at the moment. Instead you have to use a command like this var docker = Fd.Native();
// Contact the docker registry and check if newer, if so -> download
docker.Host.Login("<server>", "<user>", "<password>", docker.Certificates);
docker.Host.Pull("repo/docker/db/db_postgres:latest", docker.Certificates);
using (
var container =
Fd.UseContainer()
.UseImage("repo/docker/db/db_postgres:latest")
.ExposePort(5432)
.WithEnvironment("POSTGRES_PASSWORD=mysecretpassword")
.WaitForProcess("postgres", 30000 /*30s*/)
.Build()
.Start())
{
var config = container.GetConfiguration(true);
AreEqual(ServiceRunningState.Running, config.State.ToServiceState());
}
docker.Host.Logout(docker.Certificates); I will add this to the Fluent API along the lines of using (
var container =
Fd.UseContainer()
.UseImage("postgres:latest", force: true) // default will be false
.ExposePort(5432)
.WithEnvironment("POSTGRES_PASSWORD=mysecretpassword")
.WaitForProcess("postgres", 30000 /*30s*/)
.Build()
.Start())
{
var config = container.GetConfiguration(true);
AreEqual(ServiceRunningState.Running, config.State.ToServiceState());
} |
mariotoffia
pushed a commit
that referenced
this issue
May 3, 2019
This allows a force pull from either private or public repo and solves Issue #84.
@ta32 I've pushed a fix to allow for Cheers, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi is there an option to pull the latest container?
the image repo/docker/db/db_postgres:latest has already been pulled and it is available locally. But it got updated in the private repository by someone else. I want to check for updates and pull the latest version.
Thanks
The text was updated successfully, but these errors were encountered: