~With custom docker images, does `docker_environme...
# general
l
With custom docker images, does
docker_environment
support setting
registries
when pulling the
image
?
Copy code
docker_environment(
    name="linux_x86_64-go1_21_1",
    platform="linux_x86_64",
    image="buildtools/linux_x86_64-go1_21_1:9c26819-1696454919",
    registries=[
      "@quay",
    ],
)
FYI, it doesn’t but is the
image
expected to be always public? or is there a config I’m not aware of 🤔
In our
pants.toml
, we do define the registry:
Copy code
[docker.registries.quay]
address = "<http://quay.io|quay.io>"
I answered my own question. You need to set
image
to:
Copy code
quay.io/buildtools/linux_x86_64-go1_21_1:9c26819-1696454919
🙌 1