Update Docker CE to 18.09

I’m trying to update Docker version to the latest at this moment 18.09 using the following commands:

sudo apt update -y
sudo apt install --only-upgrade docker-ce -y

But it’s saying that the latest version (18.06) is present already.

docker-ce is already the newest version (18.06.0~ce~3-0~ubuntu).

When I’m installing it using the convenience script:

curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh

it gets updated to the latest.

I too would like a newer version of Docker on travis - since 18.06 does not support buildkit

- curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
- sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
- sudo apt-get update
- sudo apt-get -y -o Dpkg::Options::="--force-confnew" install docker-ce

this does work.