[root@dyw219 newimg]# cd /usr/bin [root@dyw219 bin]# wget http://dy.csie.cyut.edu.tw/dy/download/docker-1.9.1
[root@dyw219 bin]# mv docker docker-1.7.1
[root@dyw219 bin]# ln -s docker-1.9.1 docker
[root@dyw219 bin]# ll docker* lrwxrwxrwx. 1 root root 12 Aug 16 07:52 docker -> docker-1.9.1 -rwxr-xr-x. 1 root root 14303495 Jul 15 2015 docker-1.7.1 -rwxr-xr-x. 1 root root 30222575 Oct 17 2018 docker-1.9.1
[root@dyw219 newimg]# /etc/init.d/docker restart Stopping docker: [ OK ] Starting docker: [ OK ]
[root@dyw219 newimg]# docker version Client: Version: 1.9.1 API version: 1.21 Go version: go1.4.3 Git commit: a34a1d5 Built: Fri Nov 20 17:56:04 UTC 2015 OS/Arch: linux/amd64 Server: Version: 1.9.1 API version: 1.21 Go version: go1.4.3 Git commit: a34a1d5 Built: Fri Nov 20 17:56:04 UTC 2015 OS/Arch: linux/amd64
[root@dyw219 bin]# cd - [root@dyw219 newimg]# docker cp index.html 6f9d0405f15b:/var/www/html/