Packing an image, from existing docker containers

24 views
Skip to first unread message

Ori N

unread,
Nov 29, 2017, 6:44:10 AM11/29/17
to Packer
Hello,

I have several containers, which build together an application with http access.
I want to be able to pack this application as an image. What I thought is to use packer to:
  • Install OS and docker
  • Pull container images from my own private repository
  • Run the containers using docker CLI commands
I wanted to get feedback about it. Is it the right way to go?

Thanks,
Ori

Alvaro Miranda Aguilera

unread,
Nov 29, 2017, 6:53:00 AM11/29/17
to packe...@googlegroups.com
if you have an existing image then you don't need packer at all

you can use docker commands like docker image save


packer is a tool that can be used to create docker containers. but if you have those then not sure what would be the benefit of having packer in the middle

can you explain more?



Virusvrij. www.avast.com

--
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/c5c56e88-ef64-4df7-a44b-f6a5d0bad47d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Alvaro

Ori N

unread,
Nov 29, 2017, 7:50:06 AM11/29/17
to Packer
My target is to have an image (like for example AWS AMI) and not a docker image. 
The image I'm talking about has a full app, with multiple containers, network and so on. I want to be able to pack the entire thing as an image.
My process for example is the following:
docker images + scripts -> AWS AMI


בתאריך יום רביעי, 29 בנובמבר 2017 בשעה 13:53:00 UTC+2, מאת Alvaro Miranda Aguilera:
if you have an existing image then you don't need packer at all

you can use docker commands like docker image save


packer is a tool that can be used to create docker containers. but if you have those then not sure what would be the benefit of having packer in the middle

can you explain more?



Virusvrij. www.avast.com
On Wed, Nov 29, 2017 at 12:44 PM, Ori N <oor...@gmail.com> wrote:
Hello,

I have several containers, which build together an application with http access.
I want to be able to pack this application as an image. What I thought is to use packer to:
  • Install OS and docker
  • Pull container images from my own private repository
  • Run the containers using docker CLI commands
I wanted to get feedback about it. Is it the right way to go?

Thanks,
Ori

--
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.



--
Alvaro

Reply all
Reply to author
Forward
0 new messages