plugins/docker ; docker registry login use token ; then authentication required.

pipeline:

publish:
image: plugins/docker
repo: 172.25.163.133:5000/lixw/demooo
registry: 172.25.163.133:5000
username: hack
auth: SBUB7Do8ZpuUwZVwY1OeuZFyf8YgKUDxpPCoe_yiA6k
insecure: true
tags: [ latest ]

logs:
Successfully built 7054fc85816a
16s
99
Successfully tagged 3116c40bb0d1893647a804cfbb74dee7954ddd66:latest
16s
100

  • /usr/local/bin/docker tag 3116c40bb0d1893647a804cfbb74dee7954ddd66 172.25.163.133:5000/lixw/demooo:latest
    16s
    101
  • /usr/local/bin/docker push 172.25.163.133:5000/lixw/demooo:latest
    16s
    102
    The push refers to a repository [172.25.163.133:5000/lixw/demooo]
    16s
    103
    7fb849fea8bc: Preparing
    16s
    104
    b751ca8c434d: Preparing
    16s
    105
    cd7100a72410: Preparing
    16s
    106
    unauthorized: authentication required
    16s
    107
    time=“2018-01-17T08:44:00Z” level=fatal msg=“exit status 1”

I’m not familiar with using an auth token, but have you tried using username and password?