<p>This is my <code>auth-depl.yaml</code> file:</p>
<pre><code>apiVersion: apps/v1
kind: Deployment
metadata:
  name: auth-depl
spec:
  replicas: 1
  selector:
    matchLabels:
      app: auth
  template:
    metadata:
      labels:
        app: auth
    spec:
      containers:
        - name: auth
          image: tester/auth
          env:
            - name: MONGO_URI
              value: 'mongodb://auth-mongo-srv:27017/auth'
            - name: JWT_KEY
              valueFrom:
                secretKeyRef:
                  name: jwt-secret
                  key: JWT_KEY
---
apiVersion: v1
kind: Service
metadata:
  name: auth-srv
spec:
  selector:
    app: auth
  ports:
    - name: auth
      protocol: TCP
      port: 3000
      targetPort: 3000
</code></pre>
<p>And the following is <code>auth-mongo-depl.yaml</code>:</p>
<pre><code>apiVersion: apps/v1
kind: Deployment
metadata:
  name: auth-mongo-depl
spec:
  replicas: 1
  selector:
    matchLabels:
      app: auth-mongo
  template:
    metadata:
      labels:
        app: auth-mongo
    spec:
      containers:
        - name: auth-mongo
          image: mongo
---
apiVersion: v1
kind: Service
metadata:
  name: auth-mongo-srv
spec:
  selector:
    app: auth-mongo
  ports:
    - name: db
      protocol: TCP
      port: 27017
      targetPort: 27017
</code></pre>
<p>When I run <code>skaffold dev</code> it gives me the following error:</p>
<pre><code> - deployment/auth-mongo-depl: container auth-mongo is waiting to start: mongo can't be pulled
    - pod/auth-mongo-depl-64f5f58669-dw4hg: container auth-mongo is waiting to start: mongo can't be pulled
 - deployment/auth-mongo-depl failed. Error: container auth-mongo is waiting to start: mongo can't be pulled.
</code></pre>
<p>The <code>mongo</code> service is up and running and I can run <code>mongo</code> command on the terminal. It also starts and runs on it's default <code>mongodb://127.0.0.1:27017</code> address. I use Windows 10 and Docker-Desktop.</p>
<p>Let me know if more information needs to be added.</p>

GoodMan
<p>I had a similar issue, and this was how I resolved it. I went to my Docker Desktop app (Mac) and did a clean-up of all the docker images. I basically deleted all the images which also include mongo image.</p>
<p><a href="https://i.stack.imgur.com/rSmrZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rSmrZ.png" alt="enter image description here" /></a></p>
<p><a href="https://i.stack.imgur.com/2h4Uk.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2h4Uk.png" alt="enter image description here" /></a></p>
<p>Then I ran <code>skaffold dev</code> and all the images were built again, and a fresh copy of mongo was added to my Docker Desktop app. Now, my code started successfully without mongo error. I hope this helps</p>
