Saturday, April 27, 2024
 Popular · Latest · Hot · Upcoming
156
rated 0 times [  156] [ 0]  / answers: 1 / hits: 388445  / 2 Years ago, thu, december 16, 2021, 2:55:51

I type docker.io version, and get:



Client version: 0.9.1
Go version (client): go1.2.1
Git commit (client): 3600720
Server version: 0.9.1
Git commit (server): 3600720
Go version (server): go1.2.1
Last stable version: 0.11.1, please update docker


I follow that with an apt-get update, then either: apt-get upgrade, or apt-get upgrade docker.io, but all it gives me is:



docker.io is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.


I'm running Ubuntu 14.04 (trusty) 64bit server.



EDIT: I think I used a script in this Post comment to install docker (since it purported to allow me to just type docker instead of docker.io)


More From » docker

 Answers
3

Suppose it is Ubuntu Trusty (14.04) release, which has 0.9.1 officially



Update again in 2017/03/07 to reflect to the changes in new release, see https://blog.docker.com/2017/03/docker-enterprise-edition/



Official guideline is here Install docker for Ubuntu, old release had different package name.




  • docker.io: is used to be very old version in default ubuntu repo (can skip here)

  • docker-engine: is used before release 1.13.x

  • docker-ce: since 17.03



for docker-engine



# add the new gpg key
$ sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
# add new repo
$ sudo add-apt-repository
"deb [arch=amd64] https://download.docker.com/linux/ubuntu
$(lsb_release -cs)
stable"


Then you can smoothly upgrade to latest docker version



$ sudo apt-get update

# remove the old
$ sudo apt-get purge lxc-docker*

# install the new
$ sudo apt-get install docker-engine


And in the case that you don't want to install latest package then you can do something like below.



$ sudo apt-get install docker-engine=1.7.1-0~trusty


for docker-ce



$ 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 install docker-ce

[#24985] Thursday, December 16, 2021, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
lishrag

Total Points: 306
Total Questions: 109
Total Answers: 125

Location: Saint Lucia
Member since Wed, Feb 8, 2023
1 Year ago
;