Please, I can’t figure out how to log in on a private registry deploying with Docker in a remote machine.
Alway same response, unless I switch the force_pull
option to false, then it will use the already downloaded image as expected.
» Deploying...
❌ Pulling Docker Image 1234567890.dkr.ecr.us-east-1.amazonaws.com/test:test
! unable to pull image from Docker registry: unable to pull image: Error response
from daemon: Head
https://1234567890.dkr.ecr.us-east-1.amazonaws.com/v2/test/manifests/test: no
basic auth credentials
project = "example-nodejs"
app "example-nodejs" {
labels = {
"service" = "example-nodejs",
"env" = "dev"
}
build {
use "pack" {}
registry {
use "aws-ecr" {
region = "us-east-1"
repository = "test"
tag = "test"
}
}
}
deploy {
use "docker" {
force_pull = true
client_config {
host = "tcp://my.remote.docker.host:2375"
api_version = "1.41"
}
}
}
}