Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

"docker -- run.." command in "Getting Started" doesn't work #125

Open
rohandhruva opened this issue Jul 27, 2017 · 25 comments
Open

"docker -- run.." command in "Getting Started" doesn't work #125

rohandhruva opened this issue Jul 27, 2017 · 25 comments

Comments

@rohandhruva
Copy link

I am following the "Getting Started" instructions on Mac OSX 10.12.6, with Docker CE 17.6.0-ce downloaded and installed from the link provided in that section.

Here's what happens when I run the command provided to start the image:

$ docker -- run -p 5665:9999 gcr.io/android-battery-historian/stable:3.0 --port 9999
docker: 'run' is not a docker command.
See 'docker --help'

The -- between docker and run seems to be the problem. After removing that, things are working as expected:

$ docker run -p 5665:9999 gcr.io/android-battery-historian/stable:3.0 --port 9999
Unable to find image 'gcr.io/android-battery-historian/stable:3.0' locally
3.0: Pulling from android-battery-historian/stable
c62795f78da9: Pull complete
....
...
2017/07/27 19:22:37 Listening on port:  9999
...
@hlupico
Copy link

hlupico commented Jul 31, 2017

I ran into a similar problem and the solution you mentioned worked for me as well.

@blaksos
Copy link

blaksos commented Oct 24, 2017

Same for me, removing -- does help.

@hpbl
Copy link

hpbl commented Dec 13, 2017

I am getting

docker: Error response from daemon: pull access denied for gcr.io/android-battery-historian/stable, repository does not exist or may require 'docker login'.
See 'docker run --help'.

can anyone help me?

@answerdroid
Copy link

Getting Same as @hpbl .
Any update?

@mikalackis
Copy link

Same here, I was able to install it a month ago, now same error as @hpbl

@niulinguo
Copy link

I am getting

docker: Error response from daemon: Get https://gcr.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers). See 'docker run --help'.

can anyone help me?

@amsterdatech
Copy link

I'm getting the same error, I also have an account at DockerHub but it's not seems to work to. Any estimation about when this will be fixed?

@amsterdatech
Copy link

After some research I found an workaround, an image that's works in the same manner.

https://hub.docker.com/r/bhaavan/battery-historian/

I've checked the Dockerfile and everything seems to be right and it worked!!!!

@davidtcdeveloper
Copy link

Same problem here, cannot pull the image from registry.

@kenyee
Copy link

kenyee commented Jan 29, 2018

Ditto...doesn't work for me either...why doesn't this github repo include the Dockerfile needed to build the docker image???
That would make it easier to build into our own docker registry IMHO...

@kenyee
Copy link

kenyee commented Jan 29, 2018

Got annoyed at this and put up my own image:
https://hub.docker.com/r/kenyee/battery_historian/
Still doesn't minimize the size yet because you don't need the entire Go compiler...I'll see if I can fiddle w/ it a bit more.

@7adityaraj
Copy link

docker: Error response from daemon: pull access denied for gcr.io/android-battery-historian/stable, repository does not exist or may require 'docker login'.
See 'docker run --help'.

Can anyone explain, why is this happening?

Thanks bhaavan @amsterdatech , I am using your repo..

@aumarji
Copy link

aumarji commented Feb 22, 2018

This helped - https://hub.docker.com/r/bhaavan/battery-historian/
Thanks, Bhaavan!

@murano500k
Copy link

Thanks, Bhaavan!

@nbetcher
Copy link

Sir Googles, any update on this? Going to use the workarounds for now, but the breakage might be contributed to by an automatic Docker image update. It worked a month ago for me, now after a Docker image update it no longer does.

@berkeragir
Copy link

I suppose someone accidentally made the battery-historian image private on gcr.io? Also getting "unauthorized" response when trying to run the docker image (both 2.1 in the Android docs and 3.0 mentioned in the repository readme).

@lixw1021
Copy link

lixw1021 commented Apr 1, 2018

@berkeragir did you solve it? I got the same issure and it still doesn't work for me after download other guys repo
Unable to find image 'gcr.io/android-battery-historian/stable:3.0' locally
docker: Error response from daemon: unauthorized: You don't have the needed permissions to perform this operation, and you may have invalid credent
ials. To authenticate your request, follow the steps in: https://cloud.google.com/container-registry/docs/advanced-authentication.

@berkeragir
Copy link

@lixw1021 I managed to run in from the custom repo (https://hub.docker.com/r/bhaavan/battery-historian/), but not the official one.

@ccorcos
Copy link

ccorcos commented Jun 4, 2018

Try docker run instead of docker -- run

@ghost
Copy link

ghost commented Jun 9, 2018

Yep. Same thing here.

@ityancs
Copy link

ityancs commented Jun 15, 2018

use docker run -d -p 9999:9999 bhaavan/battery-historian
detail see https://hub.docker.com/r/bhaavan/battery-historian/

@barchandune
Copy link

Same here. Android team pls fix the problem.

@ferdicus
Copy link

ferdicus commented Jul 3, 2018

pr is open since april 22nd.... #115

@10B-B11
Copy link

10B-B11 commented Nov 30, 2018

@ityancs
it works for me

@MichaelJokAr
Copy link

docker run -d -p 9999:9999  bhaavan/battery-historian

this work to me

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests