Skip to content

Instantly share code, notes, and snippets.

@garethahealy
Created June 18, 2020 20:01
Show Gist options
  • Save garethahealy/7af67731910aaa25f21b41648dd706d4 to your computer and use it in GitHub Desktop.
Save garethahealy/7af67731910aaa25f21b41648dd706d4 to your computer and use it in GitHub Desktop.
inspect
$ docker pull quay.io/openshift/origin-jenkins-agent-base:4.4
4.4: Pulling from openshift/origin-jenkins-agent-base
Digest: sha256:1d59d3b1902a3581b6a9b1955fbd1d44490d9f470abbd60591948942a4ef7437
Status: Image is up to date for quay.io/openshift/origin-jenkins-agent-base:4.4
quay.io/openshift/origin-jenkins-agent-base:4.4
$ docker inspect quay.io/openshift/origin-jenkins-agent-base:4.4
[
{
"Id": "sha256:cd343f0d83042932fa992e095cd4a93a89a3520873f99b0e15fde69eb46e7e10",
"RepoTags": [
"quay.io/openshift/origin-jenkins-agent-base:4.4"
],
"RepoDigests": [
"quay.io/openshift/origin-jenkins-agent-base@sha256:1d59d3b1902a3581b6a9b1955fbd1d44490d9f470abbd60591948942a4ef7437"
],
"Parent": "",
"Comment": "",
"Created": "2020-06-13T00:10:44.644429651Z",
"Container": "bec8824a42f8a167ccc9f4dd386ec848c18442461d9315547b7ef7a9d0aed511",
"ContainerConfig": {
"Hostname": "jenkins-agent-base-build",
"Domainname": "",
"User": "",
"AttachStdin": false,
"AttachStdout": false,
"AttachStderr": false,
"Tty": false,
"OpenStdin": false,
"StdinOnce": false,
"Env": [
"foo=bar",
"OPENSHIFT_BUILD_NAME=cli",
"OPENSHIFT_BUILD_NAMESPACE=ci-op-sqqmbt0y",
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"container=oci"
],
"Cmd": [
"#(imagebuilder)\nsleep 86400"
],
"Image": "docker-registry.default.svc:5000/ci-op-pk34ddbn/pipeline@sha256:d450ba22b7a6ac421f14799b0dfd2944f0df5db07ca5b405008efd409da8b104",
"Volumes": null,
"WorkingDir": "",
"Entrypoint": [
"/bin/sh",
"-c"
],
"OnBuild": null,
"Labels": {
"architecture": "x86_64",
"build-date": "2020-05-11T17:22:15.219602",
"com.redhat.build-host": "cpt-1008.osbs.prod.upshift.rdu2.redhat.com",
"com.redhat.component": "ubi7-container",
"com.redhat.license_terms": "https://www.redhat.com/en/about/red-hat-end-user-license-agreements#UBI",
"description": "The Universal Base Image is designed and engineered to be the base layer for all of your containerized applications, middleware and utilities. This base image is freely redistributable, but Red Hat only supports Red Hat technologies through subscriptions for Red Hat products. This image is maintained by Red Hat and updated regularly.",
"distribution-scope": "public",
"io.k8s.description": "OpenShift is a platform for developing, building, and deploying containerized applications.",
"io.k8s.display-name": "OpenShift Client",
"io.openshift.build.commit.author": "",
"io.openshift.build.commit.date": "",
"io.openshift.build.commit.id": "d038424d6d4f1cc39ad586ac0d36dac3a7a37ceb",
"io.openshift.build.commit.message": "",
"io.openshift.build.commit.ref": "release-4.4",
"io.openshift.build.name": "",
"io.openshift.build.namespace": "",
"io.openshift.build.source-context-dir": "",
"io.openshift.build.source-location": "https://github.com/openshift/oc",
"io.openshift.tags": "openshift,cli",
"name": "ubi7",
"release": "311",
"summary": "Provides the latest release of the Red Hat Universal Base Image 7.",
"url": "https://access.redhat.com/containers/#/registry.access.redhat.com/ubi7/images/7.8-311",
"vcs-ref": "d038424d6d4f1cc39ad586ac0d36dac3a7a37ceb",
"vcs-type": "git",
"vcs-url": "https://github.com/openshift/oc",
"vendor": "Red Hat, Inc.",
"version": "7.8"
}
},
"DockerVersion": "1.13.1",
"Author": "Akram Ben Aissi <abenaiss@redhat.com>",
"Config": {
"Hostname": "dcdaa3322a97",
"Domainname": "",
"User": "root",
"AttachStdin": false,
"AttachStdout": false,
"AttachStderr": false,
"Tty": false,
"OpenStdin": false,
"StdinOnce": false,
"Env": [
"foo=bar",
"HOME=/home/jenkins",
"LANG=en_US.UTF-8",
"LC_ALL=en_US.UTF-8",
"OPENSHIFT_BUILD_NAME=jenkins-agent-base",
"OPENSHIFT_BUILD_NAMESPACE=ci-op-pk34ddbn",
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"container=oci"
],
"Cmd": null,
"ArgsEscaped": true,
"Image": "",
"Volumes": null,
"WorkingDir": "",
"Entrypoint": [
"/usr/bin/go-init",
"-main",
"/usr/local/bin/run-jnlp-client"
],
"OnBuild": null,
"Labels": {
"architecture": "x86_64",
"build-date": "2020-05-11T17:22:15.219602",
"com.redhat.build-host": "cpt-1008.osbs.prod.upshift.rdu2.redhat.com",
"com.redhat.component": "jenkins-slave-base-rhel7-container",
"com.redhat.license_terms": "https://www.redhat.com/en/about/red-hat-end-user-license-agreements#UBI",
"description": "The Universal Base Image is designed and engineered to be the base layer for all of your containerized applications, middleware and utilities. This base image is freely redistributable, but Red Hat only supports Red Hat technologies through subscriptions for Red Hat products. This image is maintained by Red Hat and updated regularly.",
"distribution-scope": "public",
"io.k8s.description": "The jenkins slave base image is intended to be built on top of, to add your own tools that your jenkins job needs. The slave base image includes all the jenkins logic to operate as a slave, so users just have to yum install any additional packages their specific jenkins job will need",
"io.k8s.display-name": "Jenkins Slave Base",
"io.openshift.build.commit.author": "",
"io.openshift.build.commit.date": "",
"io.openshift.build.commit.id": "6d246fa1685f5b49d199be9fde6715e7d12fddbe",
"io.openshift.build.commit.message": "",
"io.openshift.build.commit.ref": "release-4.4",
"io.openshift.build.name": "",
"io.openshift.build.namespace": "",
"io.openshift.build.source-context-dir": "",
"io.openshift.build.source-location": "https://github.com/openshift/jenkins",
"io.openshift.tags": "openshift,jenkins,slave",
"name": "openshift3/jenkins-slave-base-rhel7",
"release": "311",
"summary": "Provides the latest release of the Red Hat Universal Base Image 7.",
"url": "https://access.redhat.com/containers/#/registry.access.redhat.com/ubi7/images/7.8-311",
"vcs-ref": "6d246fa1685f5b49d199be9fde6715e7d12fddbe",
"vcs-type": "git",
"vcs-url": "https://github.com/openshift/jenkins",
"vendor": "Red Hat, Inc.",
"version": "3.6"
}
},
"Architecture": "amd64",
"Os": "linux",
"Size": 710777858,
"VirtualSize": 710777858,
"GraphDriver": {
"Data": {
"LowerDir": "/var/lib/docker/overlay2/c5c4e03408c108334a9bf1223fd01966c9d1358e95c708886e932e64513e8225/diff:/var/lib/docker/overlay2/f075365ce402f05b3d38ad39bc66507b9779c2e41ab51ec3e5a1ae5359583e5c/diff:/var/lib/docker/overlay2/b28e52be9c634936ae244eece0ce32ec69809d39224734b38dc7f783b9dc691d/diff:/var/lib/docker/overlay2/8a8d71a905fc7fecdda9b30646cee2a0dd23eb368d872aeea464a37884611e8f/diff:/var/lib/docker/overlay2/43638ea39f3e71b7cfc4b23df7f737040c86aee98682d5b078bbb068a9b3a881/diff",
"MergedDir": "/var/lib/docker/overlay2/b8989204345eb5dd9eda6fa2861e68dfe7de74cefe307b64bbdd8acab0d99b1a/merged",
"UpperDir": "/var/lib/docker/overlay2/b8989204345eb5dd9eda6fa2861e68dfe7de74cefe307b64bbdd8acab0d99b1a/diff",
"WorkDir": "/var/lib/docker/overlay2/b8989204345eb5dd9eda6fa2861e68dfe7de74cefe307b64bbdd8acab0d99b1a/work"
},
"Name": "overlay2"
},
"RootFS": {
"Type": "layers",
"Layers": [
"sha256:895d16eabfa1424f3c371109d11b354c08e548373dc8ad270a535b6bee183a50",
"sha256:933e707b3698616b1814e54a8fcafce7e79ff89ac3d899c670de031a0719e149",
"sha256:69d01e5c85baecaea4ba9f1d327946a3c1b108b63550a68743495ffbd4a5cebb",
"sha256:60ccd29b29f3ddb0be343f73eba68b6dd5a9abe7b94f77d50623c313ca4dae4b",
"sha256:b824da1ba831e0349bc566fce2d77889d9943531c790538b37dce5bee41166a9",
"sha256:31ca91dfba7979d82b07d04fb0d651f263a99086fa68717fb2ef575501e2b652"
]
},
"Metadata": {
"LastTagTime": "0001-01-01T00:00:00Z"
}
}
]
$ skopeo inspect docker://quay.io/openshift/origin-jenkins-agent-base:4.4
{
"Name": "quay.io/openshift/origin-jenkins-agent-base",
"Digest": "sha256:1d59d3b1902a3581b6a9b1955fbd1d44490d9f470abbd60591948942a4ef7437",
"RepoTags": [
"v4.0",
"v4.0.0",
"4.1",
"4.1.0",
"4.2",
"4.2.0",
"4.3",
"4.3.0",
"4.4",
"4.4.0",
"4.5",
"4.5.0",
"4.6",
"4.6.0",
"latest",
"4.7",
"4.7.0"
],
"Created": "2020-06-13T00:10:44.644429651Z",
"DockerVersion": "1.13.1",
"Labels": {
"architecture": "x86_64",
"build-date": "2020-05-11T17:22:15.219602",
"com.redhat.build-host": "cpt-1008.osbs.prod.upshift.rdu2.redhat.com",
"com.redhat.component": "jenkins-slave-base-rhel7-container",
"com.redhat.license_terms": "https://www.redhat.com/en/about/red-hat-end-user-license-agreements#UBI",
"description": "The Universal Base Image is designed and engineered to be the base layer for all of your containerized applications, middleware and utilities. This base image is freely redistributable, but Red Hat only supports Red Hat technologies through subscriptions for Red Hat products. This image is maintained by Red Hat and updated regularly.",
"distribution-scope": "public",
"io.k8s.description": "The jenkins slave base image is intended to be built on top of, to add your own tools that your jenkins job needs. The slave base image includes all the jenkins logic to operate as a slave, so users just have to yum install any additional packages their specific jenkins job will need",
"io.k8s.display-name": "Jenkins Slave Base",
"io.openshift.build.commit.author": "",
"io.openshift.build.commit.date": "",
"io.openshift.build.commit.id": "6d246fa1685f5b49d199be9fde6715e7d12fddbe",
"io.openshift.build.commit.message": "",
"io.openshift.build.commit.ref": "release-4.4",
"io.openshift.build.name": "",
"io.openshift.build.namespace": "",
"io.openshift.build.source-context-dir": "",
"io.openshift.build.source-location": "https://github.com/openshift/jenkins",
"io.openshift.tags": "openshift,jenkins,slave",
"name": "openshift3/jenkins-slave-base-rhel7",
"release": "311",
"summary": "Provides the latest release of the Red Hat Universal Base Image 7.",
"url": "https://access.redhat.com/containers/#/registry.access.redhat.com/ubi7/images/7.8-311",
"vcs-ref": "6d246fa1685f5b49d199be9fde6715e7d12fddbe",
"vcs-type": "git",
"vcs-url": "https://github.com/openshift/jenkins",
"vendor": "Red Hat, Inc.",
"version": "3.6"
},
"Architecture": "amd64",
"Os": "linux",
"Layers": [
"sha256:a3ac36470b00df382448e79f7a749aa6833e4ac9cc90e3391f778820db9fa407",
"sha256:82a8f4ea76cb6f833c5f179b3e6eda9f2267ed8ac7d1bf652f88ac3e9cc453d1",
"sha256:08dd004bb5388cbb917f17e9306438ad4ab19f12e849db5f8e04a6bd7a362623",
"sha256:0b6e7c829c1fe4673c2f8229dceea65f2a0ad8a70e59eca28f40111f0bd95717",
"sha256:2ae86db93cd7bd096c7909d19121fd7d395e407505ab345aadf8f7ea35ec9464",
"sha256:1b03dc03cbe36ba83430618552a42a9b56266ecda2595c5d05cb662c545d75a3"
],
"Env": [
"foo=bar",
"HOME=/home/jenkins",
"LANG=en_US.UTF-8",
"LC_ALL=en_US.UTF-8",
"OPENSHIFT_BUILD_NAME=jenkins-agent-base",
"OPENSHIFT_BUILD_NAMESPACE=ci-op-pk34ddbn",
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"container=oci"
]
}
$ docker --version
Docker version 19.03.5, build 633a0ea
$ skopeo --version
skopeo version 1.0.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment