ubuntu16.04のdockerの古いバージョンはアンインストールして、スクリプトは新しいバージョンをインストールします


docker-engine(docker-ce)スクリプトによる自動インストール
Docker公式ワンタッチインストールスクリプト(UbuntuとDebianシステム):
Uninstall old versions: sudo apt-get remove docker docker-engine docker-ce docker.io
curl -sSL https://get.docker.com/ | sh

ネットワークエラーの場合plan B:
アリクラウドのインストールスクリプト:curl -sSL http://acs-public-mirror.oss-cn-hangzhou.aliyuncs.com/docker-engine/internet | sh -On production systems, you should install a specific version of Docker CE instead of always using the latest. This output is truncated. List the available versions.
$ apt-cache madison docker-ce
次はコマンドを使用してdockerを使用しないでください.http://blog.csdn.net/sannerlittle/article/details/76679121