Docker api: push an image to docker hub private repository

I can create a docker registry on 5000 port mapped to 5000 port on my local system. docker configuration file changed to --insecure-registry localhost:5000 to make the connection insecure. How can I push images to my private repo using docker api command.

  • Docker guidance / speeding up builds by separating concerns
  • Should I use Dockerfiles or image commits?
  • How to programmatically set the github repo inside jenkins job configuration page
  • Golang: Preview of managed VM app returns error
  • Vagrant and / or Docker workflow with full OS X filesystem integration for seamless local feel?
  • How to forward USB device to Docker from Mac by ID?
  • Validating docker-compose yml file
  • Can't get Pod info in the kubernetes cluster
  • Simple docker deployment tactics
  • Docker: uwsgi service not recognised
  • Ubuntu14.04 vs Ubuntu12.04 docker images
  • mesos slave failed to excute docker command
  • One Solution collect form web for “Docker api: push an image to docker hub private repository”

    For API I guess you can use this

    Push an image on the registry
    POST /images/(name)/push

    Example request:

    POST /images/ HTTP/1.1
    Query Parameters:

    tag – The tag to associate with the image on the registry. This is optional.


    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.