Docker Questions 1. I have a default, private reg...
# general
a
Docker Questions 1. I have a default, private registry configured (in pants.toml) and the registry address is included in the image name. Is it possible to: a. package docker images such that their name is "my-company/target-name" without a registry address URL prefix b. tag each image with appropriate registry tags 2. Where can I find more info regarding
docker_environment
? `docker_environment`target docs infers some details my novice experience doesn't quite posses yet. The docker example repo doesn't include this detail and it looks quite promising for configuring production platform details as well as possibly simplifying some Apple Silicon challenges we have in our software.
c
Hi, I’ll answer 1. a) If you set
registries=[]
in your
docker_image
target (or as default using
__defaults__
) it will not use your default configured registry. https://www.pantsbuild.org/docs/reference-docker_image#coderegistriescode https://www.pantsbuild.org/docs/targets#field-default-values b) https://www.pantsbuild.org/docs/tagging-docker-images#tagging-images
e
c
for b) there are also
extra_image_tags
if you need per registry tags https://www.pantsbuild.org/docs/tagging-docker-images#configuring-registries
a
Thank you very much!