AMI image used to create Docker container

I would like to find out if Packer can use my current AMI to produce a Docker container?

I have been using Packer to make changes to the AMI but have not been able to save the image as both an AMI and a container.

A Docker image & an AMI are very different things. An AMI is a full virtual machine image, containing a kernel and lots of services, while a Docker image is a slimmed down packaging of generally a single service (no complex init system or kernel).

As a result while you can use Packer to produce either, they aren’t interchangeable, so I wouldn’t expect to be able to produce something that works with both, like I might be able to do for an AMI and an OVF (for example)

Thank you! That makes sense.