Migrating my stack to rancher

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’

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.

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 you need to do to get it to work.

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