Hello

Can you explain more?


Packer is to build docker images, not to run docker images.


After packer is run, no containers should be running as part of this.




On Fri, Apr 6, 2018 at 12:02 PM, Saurabh <saurabh240...@gmail.com> wrote:

> Hi Alvaro,
>
> Thanks for your response.
>
> Tagging Name it will not resolve my issue.
>
> I'm looking something
>
>
>    - packer should generate the docker image
>    - Ansible will do configuration on docker image
>    - and finally Container should run without any manual interaction.
>
> Please help me for this issue.
>
> Thank you !
>
> Saurabh
>
> On Friday, April 6, 2018 at 1:45:32 PM UTC+5:30, Alvaro Miranda Aguilera
> wrote:
>>
>> Hello
>>
>> Packer build a container, and in your code will be commited
>>
>> if you check
>>
>>
>> docker images
>>
>> the top one will be the new one you did.
>>
>>
>> You can add a post-processor docker-tag to tag that container
>>
>> ie
>>
>> "post-processors": [
>> {
>> "repository": "myxenial",
>> "tag": "latest",
>> "type": "docker-tag"
>> }
>> ],
>>
>> Thanks
>> Alvaro
>>
>> On Fri, Apr 6, 2018 at 9:58 AM, Saurabh <saurab...@gmail.com> wrote:
>>
>>> Hi All,
>>>
>>> While Running to Packer Build Command.
>>>
>>> at last Docker Container is getting Killed.
>>>
>>> I don't want docker Container should killed.
>>>
>>> It should run Container.
>>>
>>> *************************
>>> ==> docker: Killing the container: 4fca9b0df6764361fefee08e4053e0
>>> 73ecc869a5de72e76d885dfa4f2f6cda7a
>>> Build 'docker' finished.
>>>
>>> **************************
>>> json file :
>>>
>>> ************************************************************
>>> *******************
>>>
>>> {
>>>     "builders": [
>>>         {
>>>             "type": "docker",
>>>             "image": "ubuntu:16.04",
>>>             "commit": "true",
>>>             "pull": "true",
>>>             "changes": [
>>>                 "ENTRYPOINT [\"nginx -g 'daemon off;'\"]"
>>>             ]
>>>         }
>>>     ],
>>>     "provisioners": [
>>>         {
>>>             "type": "shell",
>>>             "script": "installansible.sh"
>>>         },
>>>         {
>>>             "type": "ansible-local",
>>>             "playbook_file": "test.yml"
>>>         }
>>>     ]
>>>  }
>>>
>>> ************************************************************
>>> *******************
>>>
>>> Looking for the solutions.
>>>
>>> Thank you
>>> Saurabh
>>>
>>> --
>>> 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.
>>> To view this discussion on the web visit https://groups.google.com/d/ms
>>> gid/packer-tool/3a2ed913-709f-4998-b370-ddffc2a2680e%40googlegroups.com
>>> <https://groups.google.com/d/msgid/packer-tool/3a2ed913-709f-4998-b370-ddffc2a2680e%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> --
>> Alvaro
>>
>> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/packer-tool/8dc2512a-d49a-49ee-bf49-87039d68e22b%40googlegroups.com
> <https://groups.google.com/d/msgid/packer-tool/8dc2512a-d49a-49ee-bf49-87039d68e22b%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Alvaro

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/CAHqq0ezVppZ2Fzy2d-CTXy_a6oqLuC3C_-9fSuZy_T2kb6HBSg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to