[packer] Docker Container Shouldn't Killed
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: 4fca9b0df6764361fefee08e4053e073ecc869a5de72e76d885dfa4f2f6cda7a 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/3a2ed913-709f-4998-b370-ddffc2a2680e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [packer] Docker Container Shouldn't Killed
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 > > 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: >> 4fca9b0df6764361fefee08e4053e073ecc869a5de72e76d885dfa4f2f6cda7a >> 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/msgid/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. For more options, visit https://groups.google.com/d/optout.
[packer] Docker Load Tar File
Hi All, How I can use packer for docker load --input tomcat.tar command ? Any Solutions for this ? Regards 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/3827717b-7130-4031-b2d0-31e34c1edde8%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [packer] Docker Container Shouldn't Killed
Yes Sure, Once Docker Images is Build, After That i want to run Docker Images so that Container can up. Docker Images is Build { "builders": [ { "type": "docker", "image": "tomcat", "commit": "true", "pull": "true" } ], "post-processors": [ { "type": "docker-tag", "repository": "tomcat", "tag": "latest" } ] } ** Docker Container ****** docker run -tdp 80:8080 tomcat ** Docker run command should be perform by packer. Not by manual. Regards Saurabh On Friday, April 6, 2018 at 4:21:33 PM UTC+5:30, Alvaro Miranda Aguilera wrote: > > 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 > 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 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: >>>> 4fca9b0df6764361fefee08e4053e073ecc869a5de72e76d885dfa4f2f6cda7a >>>> 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 >>