Docker version 17.05.0-ce deprecated, recommend upgrade to 17.06.2 or newer


I am updating my Discourse.

I received this message:


I try to do that, but this appears to me:


Any solution?


Depends on your Linux distribution. For Ubuntu it would be Get Docker Engine - Community for Ubuntu | Docker Documentation

1 Like

I have Discourse installed on DigitalOcean.

That is just a warning. Not the cause of the error.


Sounds like you it’s related to the PostgreSQL upgrade.


Latest will definitely run on 17.05.0-ce (I’m running it on a test machine).

You can get the logs saved in a file by running

git pull

Sorry for the delay, I did not get the notification.

This is what I get:

Welcome to Ubuntu 14.04.5 LTS (GNU/Linux 3.13.0-58-generic x86_64)

 * Documentation:

  System information as of Fri Aug 17 12:09:26 EDT 2018

  System load:  1.28               Processes:              117
  Usage of /:   94.9% of 58.93GB   Users logged in:        1
  Memory usage: 18%                IP address for eth0:
  Swap usage:   0%                 IP address for docker0:

  => / is using 94.9% of 58.93GB

  Graph this data and manage this system at:

114 packages can be updated.
89 updates are security updates.

New release '16.04.5 LTS' available.
Run 'do-release-upgrade' to upgrade to it.

Last login: Fri Aug 17 12:09:27 2018 from
root@forowikitetas:~# git pull
fatal: Not a git repository (or any of the parent directories): .git
root@forowikitetas:~# ./discourse-doctor
-bash: ./discourse-doctor: No such file or directory
root@forowikitetas:~# cd /var/discourse
root@forowikitetas:/var/discourse# git pull
remote: Counting objects: 33, done.
remote: Compressing objects: 100% (20/20), done.
remote: Total 33 (delta 23), reused 21 (delta 13), pack-reused 0
Unpacking objects: 100% (33/33), done.
   d032356..5c190b1  master     -> origin/master
Updating d032356..5c190b1
 discourse-doctor                |   2 +-
 image/                 |  18 ++++------------
 image/base/Dockerfile           |   8 ++++++-
 image/base/thpoff.c             |  39 ++++++++++++++++++++++++++++++++++
 image/build.rb                  | 100 --------------------------------------------------------------------------------------
 launcher                        |   2 +-
 templates/postgres.template.yml |   2 +-
 templates/redis.template.yml    |   2 +-
 templates/web.template.yml      |   3 ++-
 9 files changed, 56 insertions(+), 120 deletions(-)
 create mode 100644 image/base/thpoff.c
 delete mode 100644 image/build.rb
root@forowikitetas:/var/discourse# ./discourse-doctor
DISCOURSE DOCTOR Thu Aug 23 14:05:31 EDT 2018
OS: Linux forowikitetas 3.13.0-58-generic #97-Ubuntu SMP Wed Jul 8 02:56:15 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

Found containers/app.yml

==================== YML SETTINGS ==================== # (mandatory)
SMTP_PASSWORD=* # (optional, WARNING the char '#' in pw can cause problems!)
SMTP_PORT=587 # (optional)

==================== DOCKER INFO ====================
DOCKER VERSION: Docker version 17.05.0-ce, build 89658be

DOCKER PROCESSES (docker ps -a)

CONTAINER ID        IMAGE                 COMMAND             CREATED             STATUS              PORTS                                      NAMES
48951d88d2c5        local_discourse/app   "/sbin/boot"        6 months ago        Up 3 weeks>80/tcp,>22/tcp   app

48951d88d2c5        local_discourse/app   "/sbin/boot"        6 months ago        Up 3 weeks>80/tcp,>22/tcp   app

Discourse container app is running

==================== PLUGINS ====================
          - git clone
          - git clone
          - git clone

No non-official plugins detected.

See for the official list.

Discourse version at Discourse 2.1.0.beta1 
Discourse version at localhost: Discourse 2.1.0.beta1 

==================== MEMORY INFORMATION ====================
RAM (MB): 4048

             total       used       free     shared    buffers     cached
Mem:          3953       3761        191        277         40       1912
-/+ buffers/cache:       1808       2144
Swap:            0          0          0

==================== DISK SPACE CHECK ====================
---------- OS Disk Space ----------
Filesystem                 Size  Used Avail Use% Mounted on
/dev/disk/by-label/DOROOT   59G   45G   12G  80% /
/dev/disk/by-label/DOROOT   59G   45G   12G  80% /var/lib/docker/aufs
/dev/disk/by-label/DOROOT   59G   45G   12G  80% /

---------- Container Disk Space ----------
unknown shorthand flag: 'w' in -w
See 'docker exec --help'.

==================== DISK INFORMATION ====================

WARNING: GPT (GUID Partition Table) detected on '/dev/vda'! The util fdisk doesn't support GPT. Use GNU Parted.

Disk /dev/vda: 64.4 GB, 64424509440 bytes
255 heads, 63 sectors/track, 7832 cylinders, total 125829120 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/vda1               1   125829119    62914559+  ee  GPT

==================== END DISK INFORMATION ====================

==================== MAIL TEST ====================
For a robust test, get an address from
Or just send a test message to yourself.
Email address for mail test? ('n' to skip) []:
Sending mail to . . 
unknown shorthand flag: 'w' in -w
See 'docker exec --help'.

Replacing: Sending mail to

==================== DONE! ====================
unknown shorthand flag: 'w' in -w
See 'docker exec --help'.
The output of this program may be available at
You should inspect that file carefully before sharing the URL.

You can examine the output of this script with 
LESS=-Ri less /tmp/discourse-debug.txt

BUT FIRST, make sure that you know the first three commands below!!!

Commands to know when viewing the file with the above command (called 'less'): 
q              -- quit
/error<ENTER>  -- search for the word 'error'
n              -- search for the next occurrence
g              -- go to the beginning of the file
f              -- go forward a page
b              -- go back a page
G              -- go to the end of the file

You’ll want to change your SMTP password now. If you’d shared the file that discourse-doctor creates rather than its output, the password would be removed.

Because the container was running when you ran discourse-doctor, it didn’t try to rebuild.

1 Like

It’s true, big mistake … I’ll change it.

How could I fix the original bug I’m talking about in my first message?

Sorry my bad english!

I think that you want to

apt update
apt install docker-ce

That should upgrade docker and I believe that you should be in good shape after that. Oh, but that’s just a warning, so Docker isn’t the problem, but it probably won’t hurt.

But you’ve not shared enough info for us to see what the problem is.

If you ./launcher stop app and then run Discourse doctor, it’ll put the output of the build in /tmp/discourse-debug.txt so you can look at it to see where the problem is.

You may want to fix this


Nothing works. The same error appears :frowning: I cant upgrade discourse.

When I write this appears: E: Unable to locate package docker-ce

1 Like