# Not able to create container using centos image only

**URL:** <https://forums.suse.com/t/not-able-to-create-container-using-centos-image-only/3725>\
**Category:** Rancher 1.x\
**Created:** [August 17, 2016, 7:34am UTC](https://forums.suse.com/t/not-able-to-create-container-using-centos-image-only/3725 "2016-08-17T07:34:53Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![viknesh](https://avatars.discourse-cdn.com/v4/letter/v/e68b1a/32.png) [@viknesh](https://forums.suse.com/u/viknesh)\
**Post date:** [August 17, 2016, 7:34am UTC](https://forums.suse.com/t/not-able-to-create-container-using-centos-image-only/3725/1 "2016-08-17T07:34:53Z")

</div>

Hello,

When i try to create Centos container i am getting the following error.

Error detecting OS: Too many retries waiting for SSH to be available. Last error: Maximum number of retries (60) exceeded

The image is been pulled from openstack.

---

<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:** [August 17, 2016, 6:32pm UTC](https://forums.suse.com/t/not-able-to-create-container-using-centos-image-only/3725/2 "2016-08-17T18:32:55Z")

</div>

CentOs containers or hosts?

I’ve seen this issue when people try to add host, but this is a docker-machine error.

We are just calling docker-machine commands to create hosts. Are you able to grab the docker-machine command in the rancher/server logs and launch the same command on your host?

We are currently packaging docker-machine v0.6.0 in Rancher server, so you’d want to use that same version when testing it out.

---

<div class="post-metadata">

**Author:** ![viknesh](https://avatars.discourse-cdn.com/v4/letter/v/e68b1a/32.png) [@viknesh](https://forums.suse.com/u/viknesh)\
**Post date:** [September 8, 2016, 8:10am UTC](https://forums.suse.com/t/not-able-to-create-container-using-centos-image-only/3725/3 "2016-09-08T08:10:25Z")

</div>

Hello Denise,

I am trying to create a HOST using centos. But we are getting this following error

Error running provisioning: exit status 255

Also I could see the docker-machine is v0.6.0 in rancher server. So kindly let me know how to fix this error.

Thanks  
Viknesh G

---

<div class="post-metadata">

**Author:** ![viknesh](https://avatars.discourse-cdn.com/v4/letter/v/e68b1a/32.png) [@viknesh](https://forums.suse.com/u/viknesh)\
**Post date:** [September 8, 2016, 9:13am UTC](https://forums.suse.com/t/not-able-to-create-container-using-centos-image-only/3725/4 "2016-09-08T09:13:14Z")

</div>

Also to add, I am able to load ubuntu images of all versions but when i use CentOS its not coming up.

---

<div class="post-metadata">

**Author:** ![vincent](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/vincent/32/7156_2.png) [@vincent](https://forums.suse.com/u/vincent)\
**Post date:** [September 8, 2016, 4:46pm UTC](https://forums.suse.com/t/not-able-to-create-container-using-centos-image-only/3725/5 "2016-09-08T16:46:27Z")

</div>

Docker-machine does roughly 5 things:

1. Call the provider API to create a VM given a generated SSH key
2. Get the IP address of the new VM
3. SSH to the VM using the key
4. Run commands to install Docker
5. Run the command we provide to register the VM as a host in Rancher

The IP address returned in 2 must be reachable from the server container (running docker-machine) for it to be able to SSH. So make sure it is getting a reachable IP, and that security groups allow access.
