The ful log with env var PACKER_LOG=1 should be much longer. On Mon, Dec 3, 2018, 08:15 ajith u <[email protected] wrote:
> I am using * Packer v1.2.5* > > this is the full error: > # PACKER_LOG=1 > # packer build build.json > docker output will be in this color. > > ==> docker: Creating a temporary directory for sharing data... > ==> docker: Pulling Docker image: ubuntu:latest > docker: latest: Pulling from library/ubuntu > docker: Digest: > sha256:6d0e0c26489e33f5a6f0020edface2727db9489744ecc9b4f50c7fa671f23c49 > docker: Status: Image is up to date for ubuntu:latest > ==> docker: Starting docker container... > docker: Run command: docker run -v > /root/.packer.d/tmp/packer-docker875001861:/packer-files -d -i -t > ubuntu:latest /bin/bash > docker: Container ID: > 9ade6f732772f958afd565431604e122ae863248e22e4128bc43f5c143f1cd7c > ==> docker: Committing the container > docker: Image ID: > sha256:68f4ad47213d19bf6241d8928ffe69810f5809d52fe8ee59ef2267d93934d531 > ==> docker: Killing the container: > 9ade6f732772f958afd565431604e122ae863248e22e4128bc43f5c143f1cd7c > ==> docker: Running post-processor: vagrant > Build 'docker' errored: 1 error(s) occurred: > > * Post-processor failed: Unknown artifact type, can't build box: > packer.post-processor.docker-import > > ==> Some builds didn't complete successfully and had errors: > --> docker: 1 error(s) occurred: > > * Post-processor failed: Unknown artifact type, can't build box: > packer.post-processor.docker-import > > ==> Builds finished but no artifacts were created. > > > > On Mon, Dec 3, 2018 at 12:40 PM Rickard von Essen < > [email protected]> wrote: > >> Which version of Packer are you using? What's the output of: >> PACKER_LOG=1 packer build template.json >> >> On Mon, Dec 3, 2018, 07:48 ajith u <[email protected] wrote: >> >>> Hi, >>> I am trying to make a vagrant image (.box) from an ubuntu docker >>> container using packer . >>> The json file is like this. >>> >>> ================== >>> *{* >>> * "builders": [* >>> * {* >>> * "type": "docker",* >>> * "image": "ubuntu:latest",* >>> * "commit": "true"* >>> >>> * }* >>> * ],* >>> *"post-processors": [{* >>> * "type": "vagrant",* >>> * "output": "ubuntu-16.10-amd64-vagrant.box"* >>> * }]* >>> >>> *}* >>> >>> ====================== >>> >>> the error i am getting is >>> ** Post-processor failed: Unknown artifact type, can't build box: >>> packer.post-processor.docker-import* >>> >>> Please let me know if I am missing something >>> >>> thanks, >>> Ajith. >>> >>> -- >>> 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 [email protected]. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/packer-tool/CAHGGiCTjkOYM95gDRyMeR4uQKpfzWac1D5NjhpX7_%3DbnYWTR%3DQ%40mail.gmail.com >>> <https://groups.google.com/d/msgid/packer-tool/CAHGGiCTjkOYM95gDRyMeR4uQKpfzWac1D5NjhpX7_%3DbnYWTR%3DQ%40mail.gmail.com?utm_medium=email&utm_source=footer> >>> . >>> For more options, visit https://groups.google.com/d/optout. >>> >> -- >> 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 [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/packer-tool/CALz9Rt_-8-fNjgKdBSsroEMdd0%3DOU%3D2-ZByOhJ5TjiD3Uk8hMw%40mail.gmail.com >> <https://groups.google.com/d/msgid/packer-tool/CALz9Rt_-8-fNjgKdBSsroEMdd0%3DOU%3D2-ZByOhJ5TjiD3Uk8hMw%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > > > -- > Follow my page : https://www.facebook.com/ColouredClicks > > -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/packer-tool/CAHGGiCQCPs9YkpNM2gf3xe80kk4M22G5AmTGnAXfMtSSinOROg%40mail.gmail.com > <https://groups.google.com/d/msgid/packer-tool/CAHGGiCQCPs9YkpNM2gf3xe80kk4M22G5AmTGnAXfMtSSinOROg%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/CALz9Rt9wXQAJwYV0T88n-ApRrjY1y7muZ%3DPZM4YjW4Zo6p015A%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
