Docker builder - import from tar?

10 views
Skip to first unread message

Tyler McAdams

unread,
Feb 18, 2018, 10:46:10 PM2/18/18
to Packer
I've been googling but cannot find any information on if it's possible to import a tarred docker image and build from that... can anyone provide help?

Rickard von Essen

unread,
Feb 19, 2018, 1:41:05 AM2/19/18
to packe...@googlegroups.com
Not directly, but you could do something like:

packer build -var docker_image=$(docker load -q < image.tar) template.json 

On Feb 19, 2018 04:46, "Tyler McAdams" <tyler....@gmail.com> wrote:
I've been googling but cannot find any information on if it's possible to import a tarred docker image and build from that... can anyone provide help?

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to packer-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/48440a44-81ab-44f5-ba41-1c62dbf0ea66%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Tyler McAdams

unread,
Feb 23, 2018, 4:26:20 PM2/23/18
to Packer
Ok thanks will try!


On Monday, February 19, 2018 at 1:41:05 AM UTC-5, Rickard von Essen wrote:
Not directly, but you could do something like:

packer build -var docker_image=$(docker load -q < image.tar) template.json 
On Feb 19, 2018 04:46, "Tyler McAdams" <tyler....@gmail.com> wrote:
I've been googling but cannot find any information on if it's possible to import a tarred docker image and build from that... can anyone provide help?

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to packer-tool...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages