Use CI to build Docker images with Packer?

Has anyone gone about this, and if so- any tips or tricks? I’ve had issues using a base image of hashicorp/packer and the docker:dind service where docker command would not be available.

I’m currently in the midst of creating an image based on docker:latest with Packer baked inside, but if there’s another recommended approach please let me know!

What kind of issue are you seeing? Or are you just wanting to know how to do it?