# Can't upgrade due to old docker version

**URL:** https://meta.discourse.org/t/cant-upgrade-due-to-old-docker-version/152947
**Category:** Self-hosting
**Created:** [May 27, 2020, 12:35pm UTC](https://meta.discourse.org/t/cant-upgrade-due-to-old-docker-version/152947 "2020-05-27T12:35:26Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![AdrianoFerrari](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/adrianoferrari/32/181961_2.png) [@AdrianoFerrari](https://meta.discourse.org/u/AdrianoFerrari)
#### Post date: [May 27, 2020, 12:35pm UTC](https://meta.discourse.org/t/cant-upgrade-due-to-old-docker-version/152947/1 "2020-05-27T12:35:26Z")

</div>

During upgrade, I did `cd /var/discourse; git pull; ./launcher rebuild app`.

I get “Upgrade Complete” and “UPGRADE OF POSTGRES COMPLETE”. The latter says to “rebuild again”, though it seems to make no difference.

Despite upgrade being complete, I can’t start the app. Doing `./launcher start app` gives the following error:

```plaintext
Unable to find image 'local_discourse/app:latest' locally
/usr/bin/docker: Error response from daemon: pull access denied for local_discourse/app, repository does not exist or may require 'docker login'.
See '/usr/bin/docker run --help'.

```

Can’t restart my app again, and not sure how to proceed.

`./discourse-doctor` doesn’t help (it just detects app isn’t running, tries to rebuild and restart, ends up with same error).

Can’t attach file, as a new user, so here’s what I think it the relevant snippet from debug log:

```plaintext
Failed to rebuild app.

Checking your domain name . . .

Connection to community.gingkoapp.com succeeded.
You should probably remove any non-standard plugins and rebuild.
Attempting to restart existing container. . . 

+ /usr/bin/docker run --shm-size=512m -d --restart=always -e LANG=en_US.UTF-8 -e RAILS_ENV=production -e UNICORN_WORKERS=2 -e UNICORN_SIDEKIQS=1 -e RUBY_GLOBAL_METHOD_CACHE_SIZE=131072 -e RUBY_GC_HEAP_GROWTH_MAX_SLOTS=40000 -e RUBY_GC_HEAP_INIT_SLOTS=400000 -e RUBY_GC_HEAP_OLDOBJECT_LIMIT_FACTOR=1.5 -e DISCOURSE_DB_SOCKET=/var/run/postgresql -e DISCOURSE_DB_HOST= -e DISCOURSE_DB_PORT= -e DISCOURSE_DEVELOPER_EMAILS=REDACTED -e DISCOURSE_HOSTNAME=community.gingkoapp.com -e DISCOURSE_SMTP_ADDRESS=smtp.mailgun.org -e DISCOURSE_SMTP_USER_NAME=postmaster@community.gingkoapp.com -e DISCOURSE_SMTP_PASSWORD=REDACTED -h community-app -e DOCKER_HOST_IP=172.17.0.1 --name app -t -p 80:80 -p 2222:22 -v /var/discourse/shared/standalone:/shared -v /var/discourse/shared/standalone/log/var-log:/var/log --mac-address 02:fc:04:ee:f5:11 local_discourse/app /sbin/boot
Unable to find image 'local_discourse/app:latest' locally
/usr/bin/docker: Error response from daemon: pull access denied for local_discourse/app, repository does not exist or may require 'docker login'.
See '/usr/bin/docker run --help'.
Failed to restart the container.

```

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [May 27, 2020, 1:03pm UTC](https://meta.discourse.org/t/cant-upgrade-due-to-old-docker-version/152947/2 "2020-05-27T13:03:57Z")

</div>

1. What is Your docker version?
2. Did You try solutions suggested in this FAQ?

> [@PostgreSQL 12 update](https://meta.discourse.org/t/postgresql-12-update/151236):
>
> warning WARNING! If your database is very large, you will need a lot of extra disk space (2x database size) and should be very careful with this upgrade! We just landed the long waited PostgreSQL major version upgrade. Any site admins rebuilding Discourse from the command line will be upgraded to PostgreSQL 12 from the old PostgreSQL 10. We are running this new version for a while on Meta, and everything is working fine. PostgreSQL 12 brings lots of improvements that will be automatical…

---

<div class="post-metadata">

### Author: ![AdrianoFerrari](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/adrianoferrari/32/181961_2.png) [@AdrianoFerrari](https://meta.discourse.org/u/AdrianoFerrari)
#### Post date: [May 27, 2020, 1:08pm UTC](https://meta.discourse.org/t/cant-upgrade-due-to-old-docker-version/152947/3 "2020-05-27T13:08:39Z")

</div>

Thanks!

Docker version 17.12.0-ce

I am in a space-constrained environment (I’m constantly being asked attempt to clean up images), so that sounds like a plausible reason for this failure.

Will try steps listed and report back.

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [May 27, 2020, 1:11pm UTC](https://meta.discourse.org/t/cant-upgrade-due-to-old-docker-version/152947/4 "2020-05-27T13:11:47Z")

</div>

Your ~~discourse~~ docker version is too old.  
I’d suggest updating that before proceeding.

---

<div class="post-metadata">

### Author: ![AdrianoFerrari](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/adrianoferrari/32/181961_2.png) [@AdrianoFerrari](https://meta.discourse.org/u/AdrianoFerrari)
#### Post date: [May 27, 2020, 1:15pm UTC](https://meta.discourse.org/t/cant-upgrade-due-to-old-docker-version/152947/5 "2020-05-27T13:15:26Z")

</div>

Not sure how to do that without the web interface (or curl to the API), given that it’s down. But will look into it. I’m just going to upgrade my droplet disk size first and see if that helps.

(unless you meant that my **docker** version is old?)

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [May 27, 2020, 1:39pm UTC](https://meta.discourse.org/t/cant-upgrade-due-to-old-docker-version/152947/6 "2020-05-27T13:39:15Z")

</div>

Ohh. I’m sorry.  
I meant to say docker is too old. Try upgrading that first. Extremely sorry for the typo and confusion.

---

<div class="post-metadata">

### Author: ![AdrianoFerrari](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/adrianoferrari/32/181961_2.png) [@AdrianoFerrari](https://meta.discourse.org/u/AdrianoFerrari)
#### Post date: [May 27, 2020, 1:40pm UTC](https://meta.discourse.org/t/cant-upgrade-due-to-old-docker-version/152947/7 "2020-05-27T13:40:23Z")

</div>

No worries, I figured that’s what you meant, since you asked for docker version.  
I’m also on 14.04, so I’m going to upgrade that first, to 16.04.

Thanks again for the input. Will post back any updates.

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [May 27, 2020, 1:42pm UTC](https://meta.discourse.org/t/cant-upgrade-due-to-old-docker-version/152947/8 "2020-05-27T13:42:19Z")

</div>

> [@AdrianoFerrari](#):
>
> 14.04

Boy oh boy!

14.04 \> 16.04 \> 18.04 you’ve got a long day ahead.

Just bear in mind 16.04 is also EOL in 2021 so bump to at least 18.04

---

<div class="post-metadata">

### Author: ![AdrianoFerrari](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/adrianoferrari/32/181961_2.png) [@AdrianoFerrari](https://meta.discourse.org/u/AdrianoFerrari)
#### Post date: [May 27, 2020, 1:46pm UTC](https://meta.discourse.org/t/cant-upgrade-due-to-old-docker-version/152947/9 "2020-05-27T13:46:26Z")

</div>

Working hard just to stand still… story of my life!  
Software moves too fast for me! 😝

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [May 27, 2020, 1:49pm UTC](https://meta.discourse.org/t/cant-upgrade-due-to-old-docker-version/152947/10 "2020-05-27T13:49:00Z")

</div>

I wish you all the best with this new adventure of software upgrades. 🎊

---

<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: [May 27, 2020, 4:25pm UTC](https://meta.discourse.org/t/cant-upgrade-due-to-old-docker-version/152947/11 "2020-05-27T16:25:11Z")

</div>

> [@AdrianoFerrari](#):
>
> I’m also on 14.04, so I’m going to upgrade that first, to 16.04.

If that is a VPS it isn’t necessary to upgrade the current server. Spinnning a new one running 20.04 and moving your site to that new server is way faster and easier.

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [May 27, 2020, 4:30pm UTC](https://meta.discourse.org/t/cant-upgrade-due-to-old-docker-version/152947/12 "2020-05-27T16:30:11Z")

</div>

But their container is messed up and not starting due to multiple reasons.

---

<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: [May 27, 2020, 4:32pm UTC](https://meta.discourse.org/t/cant-upgrade-due-to-old-docker-version/152947/13 "2020-05-27T16:32:10Z")

</div>

Last automatic backup will be under the shared folder to be moved to the new server.

---

<div class="post-metadata">

### Author: ![Overgrow](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/overgrow/32/478189_2.png) [@Overgrow](https://meta.discourse.org/u/Overgrow)
#### Post date: [May 27, 2020, 4:32pm UTC](https://meta.discourse.org/t/cant-upgrade-due-to-old-docker-version/152947/14 "2020-05-27T16:32:42Z")

</div>

> [@itsbhanusharma](#):
>
> I meant to say docker is too old.

Where can I find which is currently the oldest supported docker version with 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: [May 27, 2020, 4:35pm UTC](https://meta.discourse.org/t/cant-upgrade-due-to-old-docker-version/152947/15 "2020-05-27T16:35:33Z")

</div>

Here

> <https://github.com/discourse/discourse_docker/blob/master/launcher#L83>

---

<div class="post-metadata">

### Author: ![AdrianoFerrari](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/adrianoferrari/32/181961_2.png) [@AdrianoFerrari](https://meta.discourse.org/u/AdrianoFerrari)
#### Post date: [May 27, 2020, 4:43pm UTC](https://meta.discourse.org/t/cant-upgrade-due-to-old-docker-version/152947/16 "2020-05-27T16:43:15Z")

</div>

Yes, that’s what I’m doing at the moment. Should be much faster than upgrading current… cross my fingers that I can restore from backup files (which I can still access on the old server).

---

<div class="post-metadata">

### Author: ![Overgrow](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/overgrow/32/478189_2.png) [@Overgrow](https://meta.discourse.org/u/Overgrow)
#### Post date: [May 27, 2020, 4:43pm UTC](https://meta.discourse.org/t/cant-upgrade-due-to-old-docker-version/152947/17 "2020-05-27T16:43:32Z")

</div>

Thanks..!

> [@AdrianoFerrari](#):
>
> Docker version 17.12.0-ce

So that seems like this one is supported well in current discourse.. Why do you think it is too old @itsbhanusharma?

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [May 27, 2020, 4:49pm UTC](https://meta.discourse.org/t/cant-upgrade-due-to-old-docker-version/152947/18 "2020-05-27T16:49:22Z")

</div>

Who said it’s supported?  
Any docker version that is over a couple years old isn’t even supported by it’s developer then how do you expect it to be supported by discourse?

> **[Docker Blog | Docker](https://www.docker.com/blog/)**
>
> CVE-2026-31431 is a Linux kernel vulnerability that was recently disclosed. This CVE does not compromise Docker infrastructure. That said, Docker Engine's default profiles prior to v29.4.3 allowed containers to create AF\_ALG sockets, which is the...

---

<div class="post-metadata">

### Author: ![Overgrow](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/overgrow/32/478189_2.png) [@Overgrow](https://meta.discourse.org/u/Overgrow)
#### Post date: [May 27, 2020, 5:00pm UTC](https://meta.discourse.org/t/cant-upgrade-due-to-old-docker-version/152947/19 "2020-05-27T17:00:26Z")

</div>

> [@itsbhanusharma](#):
>
> Who said it’s supported?

I’m just looking at the source code…

> [@Falco](#):
>
> `docker_min_version='17.03.1'`

---

<div class="post-metadata">

### Author: ![AdrianoFerrari](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/adrianoferrari/32/181961_2.png) [@AdrianoFerrari](https://meta.discourse.org/u/AdrianoFerrari)
#### Post date: [May 27, 2020, 9:43pm UTC](https://meta.discourse.org/t/cant-upgrade-due-to-old-docker-version/152947/20 "2020-05-27T21:43:29Z")

</div>

All’s well now. I spun up a fresh Digital Ocean droplet and restored the backup. The latest backup was corrupt, I think, but at least I only lost one or two posts and restored successfully from the backup before that.

Thanks for your help, everyone!
