https://pantsbuild.org/ logo
b

bitter-ability-32190

07/13/2022, 6:21 PM
I noticed when building my multi-stage docker image, there's two
<none>
images listed in
docker images
, but I don't see that behavior when invoking
docker
in the sandbox. What am I missing? I tried using
target_stage
to no avail
FYI @curved-television-6568 I know you're traveling tho
😁 1
c

curved-television-6568

07/13/2022, 6:47 PM
That can be from a previous build? In case you have the same image name, the old ones become “orphaned”
b

bitter-ability-32190

07/13/2022, 6:47 PM
nope, complete wipe of
docker images
beforehand
c

curved-television-6568

07/13/2022, 6:47 PM
Check image ids when you build… oh hmm
Ok, I'll be afk again now..
b

bitter-ability-32190

07/13/2022, 6:48 PM
I suspect Pants might be doing something with each stage?
Here's my guess... I think
docker --tag "..." ...
will tag each stage. So its tagging the intermediate stages, then that tag gets wiped when we build-and-tag a later stage with the same tag
c

curved-television-6568

07/14/2022, 6:07 AM
Ah, if you're using target stage, that is certainly true.
b

bitter-ability-32190

07/14/2022, 9:48 AM
I was and was not. Same behavior