Skip to content

Instantly share code, notes, and snippets.

@yspkm
Last active August 15, 2023 08:46
Show Gist options
  • Save yspkm/8edc4356ed27cf325415305853a629f0 to your computer and use it in GitHub Desktop.
Save yspkm/8edc4356ed27cf325415305853a629f0 to your computer and use it in GitHub Desktop.
doker in docker
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
deployment.kubernetes.io/revision: '3'
generation: 3
labels:
workload.user.cattle.io/workloadselector: apps.deployment-default-docker
managedFields:
- apiVersion: apps/v1
fieldsType: FieldsV1
fieldsV1:
f:metadata:
f:labels:
.: {}
f:workload.user.cattle.io/workloadselector: {}
f:spec:
f:progressDeadlineSeconds: {}
f:replicas: {}
f:revisionHistoryLimit: {}
f:selector: {}
f:strategy:
f:rollingUpdate:
.: {}
f:maxSurge: {}
f:maxUnavailable: {}
f:type: {}
f:template:
f:metadata:
f:labels:
.: {}
f:workload.user.cattle.io/workloadselector: {}
f:namespace: {}
f:spec:
f:containers:
k:{"name":"container-0"}:
.: {}
f:image: {}
f:imagePullPolicy: {}
f:name: {}
f:resources: {}
f:securityContext:
.: {}
f:allowPrivilegeEscalation: {}
f:capabilities: {}
f:privileged: {}
f:readOnlyRootFilesystem: {}
f:runAsNonRoot: {}
f:stdin: {}
f:terminationMessagePath: {}
f:terminationMessagePolicy: {}
f:tty: {}
f:dnsPolicy: {}
f:restartPolicy: {}
f:schedulerName: {}
f:securityContext: {}
f:terminationGracePeriodSeconds: {}
manager: agent
operation: Update
time: '2023-08-15T04:03:18Z'
- apiVersion: apps/v1
fieldsType: FieldsV1
fieldsV1:
f:metadata:
f:annotations:
.: {}
f:deployment.kubernetes.io/revision: {}
f:status:
f:availableReplicas: {}
f:conditions:
.: {}
k:{"type":"Available"}:
.: {}
f:lastTransitionTime: {}
f:lastUpdateTime: {}
f:message: {}
f:reason: {}
f:status: {}
f:type: {}
k:{"type":"Progressing"}:
.: {}
f:lastTransitionTime: {}
f:lastUpdateTime: {}
f:message: {}
f:reason: {}
f:status: {}
f:type: {}
f:observedGeneration: {}
f:readyReplicas: {}
f:replicas: {}
f:updatedReplicas: {}
manager: k3s
operation: Update
subresource: status
name: docker
namespace: default
spec:
progressDeadlineSeconds: 600
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
workload.user.cattle.io/workloadselector: apps.deployment-default-docker
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
creationTimestamp: null
labels:
workload.user.cattle.io/workloadselector: apps.deployment-default-docker
namespace: default
spec:
containers:
- image: docker:latest
imagePullPolicy: Always
name: container-0
resources: {}
securityContext:
allowPrivilegeEscalation: true
capabilities: {}
privileged: true
readOnlyRootFilesystem: false
runAsNonRoot: false
stdin: true
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
tty: true
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
status:
availableReplicas: 1
observedGeneration: 3
readyReplicas: 1
replicas: 1
updatedReplicas: 1
docker login
docker build -t img:tag .
docker tag img:tag yspkm/pyspark:deltalake-$VERSION-$BUILD_NUMBER
docker push yspkm/pyspark:deltalake-$VERSION-$BUILD_NUMBER
docker pull yspkm/pyspark:deltalake-v0.0.1-1
@yspkm
Copy link
Author

yspkm commented Aug 15, 2023

도커 이미지 생산 공장용

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment