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.

  • Port published via Docker — can't connect
  • Running Couchbase under GCE Docker and getting error about max number of files
  • Headless browser capable of popup handling?
  • how do i run a container so that it is running behind a proxy + on running?
  • Passing or setting password parameter to mercurial during docker build
  • Flask-WTF CSRF validation fails when app moved to docker production environment
  • Docker Datacenter: Error x509 certificate signed by unknown authority UCP 2.0.0 and DTR 2.1.0 with external certificates
  • How let gogs support ssh
  • Data Space Used not matching docker images output
  • docker alpine postgres in compose not executing docker-entrypoint-initdb.d scripts
  • link command hangs when linking container to itself
  • i/o intensive java application speeds up on docker on limited resources
  • 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.