# Create a k3d deployment / cluster using a docker image on local host

**URL:** <https://forums.suse.com/t/create-a-k3d-deployment-cluster-using-a-docker-image-on-local-host/41302>\
**Category:** k3s, k3OS, and k3d\
**Created:** [August 10, 2023, 5:22am UTC](https://forums.suse.com/t/create-a-k3d-deployment-cluster-using-a-docker-image-on-local-host/41302 "2023-08-10T05:22:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Niki\_Bolourchi](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/niki_bolourchi/32/10433_2.png) [@Niki\_Bolourchi](https://forums.suse.com/u/Niki_Bolourchi)\
**Post date:** [August 10, 2023, 5:22am UTC](https://forums.suse.com/t/create-a-k3d-deployment-cluster-using-a-docker-image-on-local-host/41302/1 "2023-08-10T05:22:03Z")

</div>

I have created a docker image from a flask app, I am using rancher desktop on mac and have used the following commands to create my cluster but i am receiving an imagePullBackOff status:

-k3d registry create test-registry.localhost --port 23456

- k3d cluster create mycluster --api-port 127.0.0.1:6445 --servers 3 --agents 2 --port ‘8080:80@loadbalancer’ --registry-use k3d-test-registry:23456

-kubectl create deployment flaskDeploy --image=k3d-test-registry:23456/python-docker:latest

-kubectl create service clusterip nginx --tcp=80:80

kubectl apply -f n.cnf

n.cnf

apiVersion: [networking.k8s.io/v1](http://networking.k8s.io/v1)  
kind: Ingress  
metadata:  
name: nginx  
annotations:  
[ingress.kubernetes.io/ssl-redirect:](http://ingress.kubernetes.io/ssl-redirect:) “false”  
spec:  
rules:

- http:  
paths:
  - path: /  
pathType: Prefix  
backend:  
service:  
name: nginx  
port:  
number: 80

But when I run kubectl get pods I get the following:  
NAME READY STATUS RESTARTS AGE  
nginx-6869d4f5f8-dx2sc 0/1 ImagePullBackOff 0 3m8s

any ideas on how to pull this image?

---

<div class="post-metadata">

**Author:** ![malcolmlewis1](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis1/32/10022_2.png) [@malcolmlewis1](https://forums.suse.com/u/malcolmlewis1)\
**Post date:** [August 10, 2023, 12:24pm UTC](https://forums.suse.com/t/create-a-k3d-deployment-cluster-using-a-docker-image-on-local-host/41302/2 "2023-08-10T12:24:42Z")

</div>

@Niki_Bolourchi Hi and welcome to the Forum 😄  
Rancher Desktop is just a single Alpine image application, not a cluster/agent setup?
