Hi everyone :wave: I have some troubles with the r...
# prefect-community
c
Hi everyone đź‘‹ I have some troubles with the running of my flow on kubernetes. My flow includes docker command such as
docker volume create
/
docker-compose up
so i need docker daemon but it cannot be outside my job. Here is my job template
Copy code
apiVersion: batch/v1
kind: Job
spec:
  template:
    spec:
      restartPolicy: Never
      containers:
        - name: flow-container
        - name: dind-daemon
          image: docker:stable-dind
          env:
            - name: DOCKER_TLS_CERTDIR
              value: ""
          securityContext:
            privileged: true
      imagePullSecrets:
        - name: regcred
It works but my docker daemon container never stop...... any ideas ?
a
are you just getting started with Prefect? this tutorial for Prefect 2.0 with Kubernetes may help to get you started https://orion-docs.prefect.io/tutorials/kubernetes-flow-runner/
c
Yes i'm getting started but this tutorial does not answer my question, my flow runs perfectly. The only problem i have is with the lifecycle of the daemon docker container
a
I guess the lifecycle is the same as with any Kubernetes or Docker applications? otherwise, can you elaborate? if there is anything Prefect-specific about your question, LMK and I'll try to help