<#16354 Allow customization of registry when runni...
# github-notifications
q
#16354 Allow customization of registry when running a docker image Issue created by thejcannon Is your feature request related to a problem? Please describe. When I
./pants run myservice:img
it uses the registry name as part of the docker tag, which is annoyingly long 🙈 E.g.
<http://123456789987654321.dkr.ecr.us-west-1.amazonaws.com/myservice:latest|123456789987654321.dkr.ecr.us-west-1.amazonaws.com/myservice:latest>
is now on my list of
docker images
. Describe the solution you'd like Allow me to customize the registry when just `run`ning my image. E.g.
Copy code
docker_image(
    registries=[...],  # for package and publish
    run_goal_registry="companyname",
)
which then
./pants run myservice:img
would make
companyname/myservice:latest
Describe alternatives you've considered I have this in a plugin, but I don't like turning off the standard plugins. #15359 could help the pain though... Additional context N/A pantsbuild/pants