Hi,

I have a very simple test process for a build and tag but I seem to be 
getting errors:

==> docker: Committing the container

    docker: Image ID: 
sha256:8f2ebfea819e328632c797f72296870c8b7134fe9a37ed1f05f19b0db96dc6c1

==> docker: Killing the container: 
cfe10779a6c8bd34d03e893c00bc186e90bee4c3f0b709037788d3b33802172d

==> docker: Running post-processor: docker-tag

    docker (docker-tag): Tagging image: 
sha256:8f2ebfea819e328632c797f72296870c8b7134fe9a37ed1f05f19b0db96dc6c1

    docker (docker-tag): Repository: keiranmraine/testspace:0.0

Build 'docker' errored: 1 error(s) occurred:


* Post-processor failed: Error tagging image: exit status 125

Stderr: unknown shorthand flag: 'f' in -f

See 'docker tag --help'.

build.json:

{

  "variables":

  {

    "created_image_name": "{{env `CGPBOX_BASE_NAME`}}",

    "dock_email": "{{env `DOCK_EMAIL`}}",

    "dock_username": "{{env `DOCK_UNAME`}}",

    "dock_password": "{{env `DOCK_PW`}}",

    "dock_server": "{{env `DOCK_SERVER`}}",

    "dock_source": "{{env `DOCK_SOURCE`}}",

    "dock_dest": "{{env `DOCK_DEST`}}",

    "cgpbox_version": "master"

  },

  "builders":

  [

    {

      "type": "docker",

      "image": "{{user `dock_source`}}",

      "commit": true

    }

  ],

  "provisioners":

  [

    {

      "type": "shell",

      "environment_vars": ["CGPBOX_VERSION={{user `cgpbox_version`}}"],

      "scripts": ["simple.sh"]

    }

  ],

  "post-processors": [

    [

      {

        "type": "docker-tag",

        "repository": "{{user `dock_username`}}/{{user `dock_dest`}}",

        "tag": "{{user `cgpbox_version`}}",

        "force": "true"

      },

      {

        "type": "docker-push",

        "login": true,

        "login_email": "{{user `dock_email`}}",

        "login_username": "{{user `dock_username`}}",

        "login_password": "{{user `dock_password`}}",

        "login_server": "{{user `dock_server`}}"

       }

    ]

  ]

}


The script just adds 'time' to the default ubuntu:16.04 image via apt-get.

Any help welcome.

Thanks,
Keiran

-- 
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/784cb48f-b0a4-49b8-868b-d98efe213f78%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to