Skip to content
This repository has been archived by the owner on Mar 18, 2024. It is now read-only.

add PushImage() #167

Merged
merged 1 commit into from
Oct 7, 2015
Merged

add PushImage() #167

merged 1 commit into from
Oct 7, 2015

Conversation

donhcd
Copy link
Collaborator

@donhcd donhcd commented Oct 1, 2015

ping @vieux @aluzzardi @ehazlett

remaking #97

example code:

package main

import (
        "log"

        "github.com/donhcd/dockerclient"
)

func main() {
        docker, err := dockerclient.NewDockerClient("unix:///var/run/docker.sock", nil)
        if err != nil {
                log.Fatal(err)
        }
        log.Println(docker.PushImage("donhcd/ubuntu", "trusty", &dockerclient.AuthConfig{"donhcd", "password", "email"}))
}

@divideandconquer
Copy link
Contributor

@donhcd thanks for rebasing and resubmitting this.

@vieux
Copy link
Contributor

vieux commented Oct 1, 2015

@bmangold is this working for you ?

@toli
Copy link

toli commented Oct 3, 2015

I'd love this functionality, happy to be your guinea pig if needed.
Is there a way to specify additional args, ie a way to force docker trust?

@bmangold
Copy link

bmangold commented Oct 5, 2015

This works for me! To use this, I installed docker 1.8.2 on an ubuntu VM ... exposed the daemon for tcp DOCKER_OPTS="--host=unix:///var/run/docker.sock --host=tcp://0.0.0.0:2376" , and then configured my goclient to talked to tcp://my_vm_host:2376. I was able to push an image and verify that it appeared in Hub.

donhcd added a commit that referenced this pull request Oct 7, 2015
@donhcd donhcd merged commit 93ccb2e into samalba:master Oct 7, 2015
@donhcd donhcd deleted the pushImage branch October 7, 2015 17:41
@vieux vieux mentioned this pull request Oct 7, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants