Docker builder - STOPSIGNAL

21 views
Skip to first unread message

G. Richard Bellamy

unread,
Apr 28, 2020, 5:42:48 PM4/28/20
to Packer
The current methodology for injecting metadata into a Docker image is via "changes:[]", which is then used via "docker commit --change".

Because "docker commit --change" doesn't support STOPSIGNAL, neither does the current implementation of the packer Docker builder.

I'm struggling with the proper methodology for this. On the one hand, I could create a base image using a Dockerfile, which is probably my current best bet. Or I could do signal handling in my ENTRYPOINT, which seems irrational as there's STOPSIGNAL for exactly that purpose.

Any guidance or suggestions are greatly appreciated!

G. Richard Bellamy

unread,
Apr 28, 2020, 6:53:40 PM4/28/20
to Packer
Unless I'm wrong, there is no way that I can see to use source a packer-built Docker image from two upstream images, so my "best bet" isn't really an option.
Reply all
Reply to author
Forward
0 new messages