Import Images with dockerImageRepository
#sync , #Red Hat , #container , #imagestream
Import Images with dockerImageRepository
$ echo 'apiVersion: v1
> kind: ImageStream
> metadata:
> creationTimestamp: null
> generation: 2
> labels:
> build: is-test
> name: jenkins-slave-base-centos7
> spec:
> dockerImageRepository: docker.io/openshift/jenkins-slave-base-centos7' | oc apply -f-
imagestream "jenkins-slave-base-centos7" created
[esauer@localhost image-scanning]$ oc export is jenkins-slave-base-centos7
apiVersion: v1
kind: ImageStream
metadata:
annotations:
kubectl.kubernetes.io/last-applied-configuration: |
{"apiVersion":"v1","kind":"ImageStream","metadata":{"annotations":{},"creationTimestamp":null,"generation":2,"labels":{"build":"is-test"},"name":"jenkins-slave-base-centos7","namespace":"sbx-esauer"},"spec":{"dockerImageRepository":"docker.io/openshift/jenkins-slave-base-centos7"}}
openshift.io/image.dockerRepositoryCheck: 2018-07-25T13:47:59Z
creationTimestamp: null
generation: 2
labels:
build: is-test
name: jenkins-slave-base-centos7
spec:
dockerImageRepository: docker.io/openshift/jenkins-slave-base-centos7
lookupPolicy:
local: false
tags:
- annotations: null
from:
kind: DockerImage
name: docker.io/openshift/jenkins-slave-base-centos7:latest
generation: 2
importPolicy: {}
name: latest
referencePolicy:
type: Source
- annotations: null
from:
kind: DockerImage
name: docker.io/openshift/jenkins-slave-base-centos7:v3.10
generation: 2
importPolicy: {}
name: v3.10
referencePolicy:
type: Source
- annotations: null
from:
kind: DockerImage
name: docker.io/openshift/jenkins-slave-base-centos7:v3.11
generation: 2
importPolicy: {}
name: v3.11
referencePolicy:
type: Source
- annotations: null
from:
kind: DockerImage
name: docker.io/openshift/jenkins-slave-base-centos7:v3.7
generation: 2
importPolicy: {}
name: v3.7
referencePolicy:
type: Source
- annotations: null
from:
kind: DockerImage
name: docker.io/openshift/jenkins-slave-base-centos7:v3.9
generation: 2
importPolicy: {}
name: v3.9
referencePolicy:
type: Source
status:
dockerImageRepository: ""