Packer は Docker イメージファイル作成の機能を持ったソフトウェア.
Packer の公式ページ: https://www.packer.io
Windows での Docker のインストール: 別ページ »で説明している.
{ "builders": [ { "type": "docker", "image": "ubuntu:18.04", "export_path": "packer-ubuntu:18.04-docker.tar" } ] }
packer build ubuntu1804.json
docker import - myubuntu packer-ubuntu:18.04-docker.tar docker images