Write login command silently so it doesn't print password

This commit is contained in:
Kyle Vigen 2014-06-23 15:54:20 -07:00
parent 26679c2ec0
commit c14d65cf3e

View file

@ -55,7 +55,7 @@ func (d *Docker) Write(f *buildfile.Buildfile, r *repo.Repo) {
dockerServerUrl, dockerRepo, d.Dockerfile)) dockerServerUrl, dockerRepo, d.Dockerfile))
// Login and push to index.docker.io // Login and push to index.docker.io
f.WriteCmd(fmt.Sprintf("docker -H %s login -u %s -p %s -e %s", f.WriteCmdSilent(fmt.Sprintf("docker -H %s login -u %s -p %s -e %s",
dockerServerUrl, d.Username, d.Password, d.Email)) dockerServerUrl, d.Username, d.Password, d.Email))
f.WriteCmd(fmt.Sprintf("docker -H %s push %s", dockerServerUrl, dockerRepo)) f.WriteCmd(fmt.Sprintf("docker -H %s push %s", dockerServerUrl, dockerRepo))