# Docker hub org and private images?

**URL:** <https://forums.suse.com/t/docker-hub-org-and-private-images/1913>\
**Category:** Rancher 1.x\
**Created:** [March 2, 2016, 4:48am UTC](https://forums.suse.com/t/docker-hub-org-and-private-images/1913 "2016-03-02T04:48:09Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![cashman04](https://avatars.discourse-cdn.com/v4/letter/c/87869e/32.png) [@cashman04](https://forums.suse.com/u/cashman04)\
**Post date:** [March 2, 2016, 4:48am UTC](https://forums.suse.com/t/docker-hub-org-and-private-images/1913/1 "2016-03-02T04:48:10Z")

</div>

After trying out docker cloud today, and being pretty impressed, and then majorly disappointed by the cost, I found rancher. Just started a test instance on my home dev box, and I am having trouble starting a stack based off of my docker file. I think this might be due to the fact that I added a docker hub registry with my account, but all of the images in my docker-compose.yml are in my org and are private images. Is this something that works with Rancher? I also have 2 images in my docker compose, and those seem show up under the stack, but none of my private images do. The error I get is below:

`Activating (Bad response statusCode [422]. Status [422 status code 422]. Body: [code=InvalidCharacters, fieldName=name] from [http://192.168.1.2:8080/v1/projects/1a5/services])`

Rancher Release - v0.59.1

---

<div class="post-metadata">

**Author:** ![denise](https://avatars.discourse-cdn.com/v4/letter/d/82dd89/32.png) [@denise](https://forums.suse.com/u/denise)\
**Post date:** [March 2, 2016, 5:28am UTC](https://forums.suse.com/t/docker-hub-org-and-private-images/1913/2 "2016-03-02T05:28:17Z")

</div>

Did you add in your Docker hub regsitry in the Infrastructure -\> registry section?

Are you able to add a service with one of the private images to just test that Rancher is able to use the credentials?

---

<div class="post-metadata">

**Author:** ![cashman04](https://avatars.discourse-cdn.com/v4/letter/c/87869e/32.png) [@cashman04](https://forums.suse.com/u/cashman04)\
**Post date:** [March 2, 2016, 5:27pm UTC](https://forums.suse.com/t/docker-hub-org-and-private-images/1913/3 "2016-03-02T17:27:24Z")

</div>

I did have my docker hub registry added. I was just able to pull an image from it just now as well. I just set this up on a droplet instead of my home dev machine, and I get the same error when I try and create a stack with my docker-compose.yml.

---

<div class="post-metadata">

**Author:** ![cashman04](https://avatars.discourse-cdn.com/v4/letter/c/87869e/32.png) [@cashman04](https://forums.suse.com/u/cashman04)\
**Post date:** [March 2, 2016, 5:54pm UTC](https://forums.suse.com/t/docker-hub-org-and-private-images/1913/4 "2016-03-02T17:54:07Z")

</div>

I just added each service manually and tested it out. Works fine. But when I create a new stack, and use my docker compose, the next page only shows the 2 public images, and not my 3. Below is my docker compose:

````auto
  image: redis:latest
  ports:
    - '6379:6379'
distance_worker:
  image: myorg/my_image1:latest
  links:
    - redis
search_worker:
  image: myorg/my_image2:latest
  links:
    - redis
front_end:
  image: myorg/my_image3:latest
  links:
    - redis
  ports:
    - '3000:3000'
resque:
  image: ennexa/resque-web
  links:
  - redis
  ports:
    - "5678:5678"
  command: "-r redis://redis:6379"```
````

---

<div class="post-metadata">

**Author:** ![cashman04](https://avatars.discourse-cdn.com/v4/letter/c/87869e/32.png) [@cashman04](https://forums.suse.com/u/cashman04)\
**Post date:** [March 2, 2016, 6:20pm UTC](https://forums.suse.com/t/docker-hub-org-and-private-images/1913/5 "2016-03-02T18:20:20Z")

</div>

SOLVED:

The issue was due to me having underscores in my image names. I ran a test one renamed and it worked. Error was due to invalid characters which led me to testing this.

---

<div class="post-metadata">

**Author:** ![denise](https://avatars.discourse-cdn.com/v4/letter/d/82dd89/32.png) [@denise](https://forums.suse.com/u/denise)\
**Post date:** [March 10, 2016, 8:02pm UTC](https://forums.suse.com/t/docker-hub-org-and-private-images/1913/6 "2016-03-10T20:02:55Z")

</div>

Closed on March 10, 2016, 8:02pm UTC


