In a discussion about whether Ubuntu 14.04 Trusty and Discourse 1.9.0.beta10 are nearing end-of-life, fearlessfrog asks if upgrading to Ubuntu 16.04 is necessary to run the latest stable Discourse version, suspecting it’s due to Docker-CE version incompatibility. codinghorror reassures that installing a newer Docker version should suffice. fearlessfrog confirms success by updating Docker via wget -qO- https://get.docker.com/ | sh, despite a warning about Docker already being installed — which they ignored after taking a snapshot. After rebuilding Discourse with ./launcher rebuild app, they encountered low disk space and resolved it with apt-get autoremove. sunnyt7 asks for clarification on the Docker install script’s warning message, and jomaxro explains that no input is needed — the script sleeps 20 seconds then proceeds automatically. sunnyt7 confirms understanding. The thread concludes that upgrading Ubuntu isn’t required; updating Docker and managing disk space suffices to run the latest Discourse on Ubuntu 14.04.
Essentially I’m trying to work out if I need to update to Ubuntu 16 to run the latest stable build of Discourse now? A good topic for doing that looks like this one:
This looks like it is due to the latest docker-ce version for 14.04 being below what is required to run the latest Discourse stable image. Not sure, so any help appreciated.
Ok, all good. Here’s what I did incase it helps others who had an older docker.
wget -qO- https://get.docker.com/ | sh
This will update docker, or rather do the commands of adding the key and repository to the latest binaries for your system. Note: it will try to scare you with this:
Warning: the "docker" command appears to already exist on this system.
As I already had a snapshot, I went for it and it seems ok. I rerun the update for Discourse like this:
./launcher rebuild app
After that I was lower on disk apparently (after all those dist and apt updates I guess):
Status: Downloaded newer image for discourse/base:2.0.20171008
You have less than 5GB of free space on the disk where /var/lib/docker is located. You will need more space to continue
I cleared up some space with this:
apt-get autoremove
After that (it’ll take a while) then a launcher rebuild app completed and we’ll all good.
This is a bit of a noob question, but what what do you type in after getting this message?
# Executing docker install script, commit: 490beaa
Warning: the "docker" command appears to already exist on this system.
If you already have Docker installed, this script can cause trouble, which is
why we're displaying this warning and provide the opportunity to cancel the
installation.
If you installed the current Docker package using this script and are using it
again to update Docker, you can safely ignore this message.
You may press Ctrl+C now to abort this script.
+ sleep 20
+ sh -c apt-get update -qq >/dev/null
Just copy/paste the “sh -c apt-get update -qq >/dev/null” part?
I could be mistaken, but you shouldn’t have to type anything. It looks like it will sleep for 20 seconds, then run the apt-get command. The script is simply giving you time to stop it from proceeding.