大网数据广告活动
服务器运维问答

what does docker version name means?

· 52CE 我爱测

Following docker document When I get the To install a specific version of Docker CE, list the available versions in the repo step yum list docker-ce --showduplicates | sort -r * updates: mirrors.aliyun.com Loading mirror speeds f…

问题原文

原帖链接 · Shihe Zhang · CC BY-SA 4.0

Following docker document
When I get the To install a specific version of Docker CE, list the available versions in the repo step

yum list docker-ce --showduplicates | sort -r
 * updates: mirrors.aliyun.com
Loading mirror speeds from cached hostfile
Loaded plugins: fastestmirror
Installed Packages
 * extras: mirrors.aliyun.com
docker-ce.x86_64            3:18.09.5-3.el7                    docker-ce-stable 
docker-ce.x86_64            3:18.09.5-3.el7                    @docker-ce-stable
docker-ce.x86_64            3:18.09.4-3.el7                    docker-ce-stable 
docker-ce.x86_64            3:18.09.3-3.el7                    docker-ce-stable 
docker-ce.x86_64            3:18.09.2-3.el7                    docker-ce-stable 
docker-ce.x86_64            3:18.09.1-3.el7                    docker-ce-stable 
docker-ce.x86_64            3:18.09.0-3.el7                    docker-ce-stable 
docker-ce.x86_64            18.06.3.ce-3.el7                   docker-ce-stable 
docker-ce.x86_64            18.06.2.ce-3.el7                   docker-ce-stable 
docker-ce.x86_64            18.06.1.ce-3.el7                   docker-ce-stable 
docker-ce.x86_64            18.06.0.ce-3.el7                   docker-ce-stable 
docker-ce.x86_64            18.03.1.ce-1.el7.centos            docker-ce-stable 
docker-ce.x86_64            18.03.0.ce-1.el7.centos            docker-ce-stable 
docker-ce.x86_64            17.12.1.ce-1.el7.centos            docker-ce-stable 

There is not any information about what the middle column means.
There are some version suffix with centos like 17.12.1.ce-1.el7.centos
And some with el7 which is demonstrated as

The list returned depends on which repositories are enabled, and is specific to your version of CentOS (indicated by the .el7 suffix in this example).

I guess the @docker-ce-stable is something special, like the default version. And what does the 3: means in 3:18.09.5-3.el7? I think it's mainly about 18.09 right?

Can't find any document about any of this. Or is it something about yum?

已采纳解答

原帖链接 · BMitch · CC BY-SA 4.0

The number before the colon, 3: in this case, is an epoch number, used to handle situations where the version number needs to be decreased. This could be the result of a beta or RC build getting out with a higher version number that wouldn't allow a normal upgrade to the GA release. I believe you need this in any commands selecting version numbers, but you can otherwise ignore this when trying to understand which version you have installed.

The important part of that version number is 18.09.5 which tells you:

  • 18.05: the major release number from docker's rolling releases, they are roughly based on the date of the first patch of the release, so 18.05 refers to May 2018
  • 5: the patch number, where fixes are released without new functionality

Note, directly from docker, you can run:

docker version

To see both the client and server version numbers.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2019-04-23)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。