# Can't pull discourse base image because docker login was broken

**URL:** https://meta.discourse.org/t/cant-pull-discourse-base-image-because-docker-login-was-broken/149954
**Category:** Support
**Created:** [April 30, 2020, 6:02pm UTC](https://meta.discourse.org/t/cant-pull-discourse-base-image-because-docker-login-was-broken/149954 "2020-04-30T18:02:10Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [April 30, 2020, 6:02pm UTC](https://meta.discourse.org/t/cant-pull-discourse-base-image-because-docker-login-was-broken/149954/1 "2020-04-30T18:02:11Z")

</div>

I just received this strange error trying to bootstrap.

I updated this site 2 days ago without incident.

```plaintext
root@support:/var/discourse# ./launcher bootstrap multi

WARNING: We are about to start downloading the Discourse base image
This process may take anywhere between a few minutes to an hour, depending on your network speed

Please be patient

Unable to find image 'discourse/base:2.0.20200429-2110' locally
/usr/bin/docker: Error response from daemon: Get https://registry-1.docker.io/v2/discourse/base/manifests/2.0.20200429-2110: unauthorized: please use personal access token to login.
See '/usr/bin/docker run --help'.
Your Docker installation is not working correctly

See: https://meta.discourse.org/t/docker-error-on-bootstrap/13657/18?u=sam
root@support:/var/discourse# docker version
Client:
 Version: 18.09.6
 API version: 1.39
 Go version: go1.10.8
 Git commit: 481bc77
 Built: Sat May 4 02:35:27 2019
 OS/Arch: linux/amd64
 Experimental: false

Server: Docker Engine - Community
 Engine:
  Version: 18.09.6
  API version: 1.39 (minimum version 1.12)
  Go version: go1.10.8
  Git commit: 481bc77
  Built: Sat May 4 01:59:36 2019
  OS/Arch: linux/amd64
  Experimental: false

root@support:/var/discourse# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
1e63a91934e8 local_discourse/multi "/sbin/boot" 2 days ago Up 2 days 0.0.0.0:7777->80/tcp multi
8681e70a72a0 local_discourse/data "/sbin/boot" 4 months ago Up 3 weeks data
root@support:/var/discourse# docker ps

```

It’s a multisite instance with Caddy as a reverse proxy, but a fairly [standard install](https://meta.discourse.org/t/142537?silent=true) that’s been working for years.

---

<div class="post-metadata">

### Author: ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)
#### Post date: [April 30, 2020, 6:08pm UTC](https://meta.discourse.org/t/cant-pull-discourse-base-image-because-docker-login-was-broken/149954/2 "2020-04-30T18:08:59Z")

</div>

What happens on a bare `docker pull 'discourse/base:2.0.20200429-2110'` ?

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [April 30, 2020, 6:11pm UTC](https://meta.discourse.org/t/cant-pull-discourse-base-image-because-docker-login-was-broken/149954/3 "2020-04-30T18:11:20Z")

</div>

> [@riking](#):
>
> docker pull 'discourse/base:2.0.20200429-2110

```plaintext
root@support:/var/discourse# docker pull 'discourse/base:2.0.20200429-2110'
Error response from daemon: Get https://registry-1.docker.io/v2/discourse/base/manifests/2.0.20200429-2110: unauthorized: please use personal access token to login
root@support:/var/discourse# 

```

also:

```plaintext
root@support:/var/discourse# curl https://registry-1.docker.io/v2/discourse/base/manifests/2.0.20200429-2110
{"errors":[{"code":"UNAUTHORIZED","message":"authentication required","detail":[{"Type":"repository","Class":"","Name":"discourse/base","Action":"pull"}]}]}
root@support:/var/discourse# 

```

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [April 30, 2020, 7:50pm UTC](https://meta.discourse.org/t/cant-pull-discourse-base-image-because-docker-login-was-broken/149954/4 "2020-04-30T19:50:41Z")

</div>

Your local docker daemon is trying to auth to that repo. Check it config on the json file.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [April 30, 2020, 9:09pm UTC](https://meta.discourse.org/t/cant-pull-discourse-base-image-because-docker-login-was-broken/149954/5 "2020-04-30T21:09:28Z")

</div>

This seems like sage advice, but I don’t know how to act on it.

```plaintext
docker run -it --rm hello-world

```

fails similarly.

I just upgraded docker to 19.03.8 (was on 18.03 or so) and rebooted. The existing containers cranked back up.

I don’t have a clue what could have changed that would break this. I looked at `/etc/docker/key.json` and it looks very much like one that’s on another machine.

Googling: “docker unauthorized: please use personal access token to login for public repo” isn’t helping.

---

<div class="post-metadata">

### Author: ![supermathie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/supermathie/32/507518_2.png) [@supermathie](https://meta.discourse.org/u/supermathie)
#### Post date: [April 30, 2020, 9:40pm UTC](https://meta.discourse.org/t/cant-pull-discourse-base-image-because-docker-login-was-broken/149954/6 "2020-04-30T21:40:31Z")

</div>

`docker login` might fix your problem.

You can also look at your `~/.docker/config.json` to check which registries for which you have credentials - if you don’t need to login you can just remove them from that file.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [April 30, 2020, 9:47pm UTC](https://meta.discourse.org/t/cant-pull-discourse-base-image-because-docker-login-was-broken/149954/7 "2020-04-30T21:47:40Z")

</div>

> [@supermathie](#):
>
> `docker login` might fix your problem.

That was it!

I went to [docker settings/security](https://hub.docker.com/settings/security), generated a new token and did a `docker login --username pfaffman` and pasted in the new key. I don’t know why the old one might have stopped working or why I’d need it all of a sudden. It was just two days ago that I did an upgrade without incident.

Thanks, Michael!

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [May 30, 2020, 9:47pm UTC](https://meta.discourse.org/t/cant-pull-discourse-base-image-because-docker-login-was-broken/149954/8 "2020-05-30T21:47:47Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
