Continuous integration 检查不同图像上的取消匹配的集合任务

Continuous integration 检查不同图像上的取消匹配的集合任务,continuous-integration,concourse,Continuous Integration,Concourse,从 以下任务将在标记为14.04的docker映像上使用-a开关运行uname命令: 结果: fly -t tutorial e -c task_ubuntu_uname.yml executing build 10 initializing running uname -a Linux a0c3f38b-7dd3-4a8f-7b3e-e56ce2bf05e9 4.2.0-42-generic #49~14.04.1-Ubuntu SMP Wed Jun 29 20:22:11 UTC 2016

以下任务将在标记为14.04的docker映像上使用-a开关运行uname命令:

结果:

fly -t tutorial e -c task_ubuntu_uname.yml
executing build 10
initializing
running uname -a
Linux a0c3f38b-7dd3-4a8f-7b3e-e56ce2bf05e9 4.2.0-42-generic #49~14.04.1-Ubuntu SMP Wed Jun 29 20:22:11 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
succeeded
fly -t tutorial e -c task_ubuntu_16_uname.yml
executing build 9
initializing
running uname -a
Linux 58069086-7a27-43f8-71ff-374bcaef0c6d 4.2.0-42-generic #49~14.04.1-Ubuntu SMP Wed Jun 29 20:22:11 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
succeeded
我很好奇为什么更改标签不会更改Ubuntu的版本:

---
platform: linux

image_resource:
  type: docker-image
  source: {repository: ubuntu, tag: "16.04"}

run:
  path: uname
  args: [-a]
结果:

fly -t tutorial e -c task_ubuntu_uname.yml
executing build 10
initializing
running uname -a
Linux a0c3f38b-7dd3-4a8f-7b3e-e56ce2bf05e9 4.2.0-42-generic #49~14.04.1-Ubuntu SMP Wed Jun 29 20:22:11 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
succeeded
fly -t tutorial e -c task_ubuntu_16_uname.yml
executing build 9
initializing
running uname -a
Linux 58069086-7a27-43f8-71ff-374bcaef0c6d 4.2.0-42-generic #49~14.04.1-Ubuntu SMP Wed Jun 29 20:22:11 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
succeeded

我看到guid是不同的,但我希望版本也会不同。为什么版本不是16.04?

uname将获取您正在运行的计算机的主机内核的版本信息-这不是名称空间-因此您正在运行的容器不会显示

如果您在ubuntu主机上运行docker run-rm-it centos uname-a,它仍然会显示ubuntu内核结果