If you’re using Docker from a separate repository, the upgrade mechanism might disable it and you need to later update/re-enable it to get to most recent Docker package to run Discourse.
I generally stick to LTS versions, on 16.04 I’ll get that every time I login. I would suggest an upgrade from 17.10 though, since the LTS versions have proven to be supported long term running stable. do-release-upgrade works fine, even from LTS to LTS.
Once there’s 20.04 LTS, stick with 18.04 for a while until at least the first point release is out.