# Drone Redundant image from private registry

**URL:** <https://drone.discourse.group/t/drone-redundant-image-from-private-registry/9478>\
**Category:** Drone Support\
**Created:** [November 30, 2018, 10:42pm UTC](https://drone.discourse.group/t/drone-redundant-image-from-private-registry/9478 "2018-11-30T22:42:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![egonzalez-T](https://avatars.discourse-cdn.com/v4/letter/e/ac91a4/32.png) [@egonzalez-T](https://drone.discourse.group/u/egonzalez-T)\
**Post date:** [November 30, 2018, 10:42pm UTC](https://drone.discourse.group/t/drone-redundant-image-from-private-registry/9478/1 "2018-11-30T22:42:33Z")

</div>

Problem Statement:  
I am trying to pull 2 different images from the same private repo. I need both images to run tests since they are both needed. I have added the hostname [gcr.io](http://gcr.io) as the registry with the correct authentication info. My .drone.yml is:

```auto
  service-x:
    detach: true
    image: gcr.io/{my-project}/service-x:dev-latest

  service-y:
    detach: true
    image: gcr.io/{my-project}/service-y:it-latest

  tests:
    image: node:latest
    commands:
      - sleep 60
      - npm run test.all

```

The repo that the build is executing in is service-y. The service-y correctly pulls and I am able to execute it correctly. However when I try to pull image service-x it pulls and executes service-y instead. Any ideas as to why this happens? Drone version 0.8.0.

---

<div class="post-metadata">

**Author:** ![egonzalez-T](https://avatars.discourse-cdn.com/v4/letter/e/ac91a4/32.png) [@egonzalez-T](https://drone.discourse.group/u/egonzalez-T)\
**Post date:** [December 3, 2018, 9:53pm UTC](https://drone.discourse.group/t/drone-redundant-image-from-private-registry/9478/2 "2018-12-03T21:53:43Z")

</div>

I figured out my issue. The images were pulling correctly but I was supplying commands that were overriding the default behavior and not executing the entrypoint. I assumed that when I specified commands I was executing those commands inside the image.
