嗨,我正在battery-historian
上工作以获取android应用的电池历史记录,我已经在Android studio终端中成功安装并登录Docker,并且当我运行docker run -p 5555:9999 gcr.io/android-battery-historian/stable:3.0 --port 9999
时,始终显示一条消息,表明该选项未经授权:
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.
最佳答案
我有同样的问题。还发现它在对https://github.com/google/battery-historian/issues/125的评论(截至12月13日,到目前为止有23票赞成)中提及。
它似乎没有收到Google的回应,但是建议使用https://hub.docker.com/r/bhaavan/battery-historian/作为解决方法,这似乎也对我有用。
关于android - Docker:来自守护程序的错误响应:成功登录后未授权,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49602840/