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.

  • error 28105#0: *1 FastCGI sent in stderr: “Primary script unknown” while reading response header from upstream
  • docker exec: rpc error: code = 2 desc = oci runtime error: exec failed
  • Resolve docker-compose container names from host machine
  • How to make communication between two docker containers running on two different hosts?
  • Getting a “A blocking operation was interrupted by a call to WSACancelBlockingCall” error when consuming Shipyard API using RestSharp
  • What is equivalent remote api command to 'docker run -d'?
  • Use Docker, Gunicorn, Nginx in django development environment but can only see nginx welcome page?
  • adding a command docker image
  • AWS ECS for Glassfish HA architecture
  • Gui application in docker. What about drivers?
  • How to view GUI apps from inside a docker container
  • Docker memory limit in pipelines
  • 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.