# Migrating my stack to rancher

**URL:** <https://forums.suse.com/t/migrating-my-stack-to-rancher/4688>\
**Category:** Rancher 1.x\
**Created:** [November 22, 2016, 7:25am UTC](https://forums.suse.com/t/migrating-my-stack-to-rancher/4688 "2016-11-22T07:25:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mwaaas](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/mwaaas/32/1611_2.png) [@mwaaas](https://forums.suse.com/u/mwaaas)\
**Post date:** [November 22, 2016, 7:25am UTC](https://forums.suse.com/t/migrating-my-stack-to-rancher/4688/1 "2016-11-22T07:25:58Z")

</div>

Hi guys trying to migrating my stack to rancher from docker-cloud

couple of issue am facing

1. unable to pull private images and have already setup docker hub registry
2. how do I do ci such that if once my image is pushed the containers autodeploys
3. Getting web socket issue in the ui
4. Am using this docker-compose and keep on getting warning due to db  
db:  
environment:
  - MYSQL\_DATABASE=cattle
  - ‘MYSQL\_PASSWORD=9118z2\*9I6&746C6’
  - ‘MYSQL\_ROOT\_PASSWORD=9118z2\*9I6&746C6’
  - MYSQL\_USER=cattle  
image: 'mysql:5.5’  
server:  
environment:
  - CATTLE\_DB\_CATTLE\_MYSQL\_HOST=db
  - CATTLE\_DB\_CATTLE\_MYSQL\_NAME=cattle
  - CATTLE\_DB\_CATTLE\_MYSQL\_PORT=3306
  - ‘CATTLE\_DB\_CATTLE\_PASSWORD=9118z2\*9I6&746C6’
  - CATTLE\_DB\_CATTLE\_USERNAME=cattle  
image: 'rancher/server:v1.2.0-pre3’  
links:
  - db  
ports:
  - '80:8080’  
volumes:
  - ‘/var/run/docker.sock:/var/run/docker.sock’

---

<div class="post-metadata">

**Author:** ![sra](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/sra/32/1514_2.png) [@sra](https://forums.suse.com/u/sra)\
**Post date:** [November 22, 2016, 2:20pm UTC](https://forums.suse.com/t/migrating-my-stack-to-rancher/4688/2 "2016-11-22T14:20:24Z")

</div>

Hi, for #1, make sure to add your repository credentials in the `Infrastructure->Registries` Rancher menu. This will ensure that your hosts all have access to the private images.

There are a few discussions of CI/CD using rancher in these forums, [for example this.](http://forums.suse.com/t/deploying-cointainers-from-gitlab-ci/3643)

For 3 and 4, could you provide more details? If you are trying to run the rancher server behind an AWS load balancer there is a [manual step](http://docs.rancher.com/rancher/v1.2/en/installing-rancher/installing-server/basic-ssl-config/#running-rancher-server-behind-an-elb-in-aws-with-ssl) you need to do to get it to work.

---

<div class="post-metadata">

**Author:** ![mwaaas](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/mwaaas/32/1611_2.png) [@mwaaas](https://forums.suse.com/u/mwaaas)\
**Post date:** [November 24, 2016, 9:57am UTC](https://forums.suse.com/t/migrating-my-stack-to-rancher/4688/3 "2016-11-24T09:57:48Z")

</div>

I have already added the registry but I still get the issue
