Docker: docker-compose build error: unauthorized: authentication required
efrenk opened this issue · 2 comments
I cloned the git hub repo and follow the instruction and during the step
docker-compose up --build I got an ERROR: Service 'app' failed to build: unauthorized: authentication required and the build stopped.
I have pasted the 'script' output of my terminal below:[efrenk@mini.local:/Users/efrenk/my-dp2/deepschool]$ docker-compose up --build
Building app
Step 1 : FROM sachinruk/ml_class
latest: Pulling from sachinruk/ml_class
bd97b43c27e3: Pull complete
6960dc1aba18: Pull complete
2b61829b0db5: Pull complete
1f88dc826b14: Pull complete
73b3859b1e43: Pull complete
b5726da2badf: Extracting [=====================> ] 28.97 MB/66.24 MB
7246c11a4887: Download complete
7a07ff0b3e63: Downloading [=> ] 30.27 MB/758.8 MB
5fe15be538ae: Download complete
0809b6f05afd: Downloading [==> ] 21.06 MB/379.6 MB
1e01633f21c6: Downloading
0501a6e2b254: Waiting
8ba6f72053f2: Waiting
2aeec0f993a5: Waiting
ERROR: Service 'app' failed to build: unauthorized: authentication required
[efrenk@mini.local:/Users/efrenk/my-dp2/deepschool]$
I guess that the docker-toolbox for Mac version is a bit out of date (installed last year) version 1.12
so I updated my docker-client docker-compose, docker-machine to latest version 17.06, After the
upgrade, I redo the step and it worked. Using docker ps, I see it running without even typing docker run.
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
5394e3a2ebe8 deepschool_app "/bin/sh -c 'jupyt..." 2 hours ago Up About an hour 0.0.0.0:9000->8888/tcp deepschool_app_1
Upgrading to the latest stable version of docker works