# Image for Ruby 2.2.2 Error response from daemon: manifest for circleci/ruby:2.2.2 not found

**URL:** <https://discuss.circleci.com/t/image-for-ruby-2-2-2-error-response-from-daemon-manifest-for-circleci-ruby-2-2-2-not-found/24014>\
**Category:** Build Environment\
**Tags:** 2.0, ruby\
**Created:** [August 2, 2018, 2:47pm UTC](https://discuss.circleci.com/t/image-for-ruby-2-2-2-error-response-from-daemon-manifest-for-circleci-ruby-2-2-2-not-found/24014 "2018-08-02T14:47:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![JFernandezWM](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/jfernandezwm/32/18757_2.png) [@JFernandezWM](https://discuss.circleci.com/u/JFernandezWM)\
**Post date:** [August 2, 2018, 2:47pm UTC](https://discuss.circleci.com/t/image-for-ruby-2-2-2-error-response-from-daemon-manifest-for-circleci-ruby-2-2-2-not-found/24014/1 "2018-08-02T14:47:49Z")

</div>

Hello. I am trying to setup a Ruby gem in CircleCI 2.0 with circleci/ruby-2.2.2 as the executor image, but I am unable to find an image with this Ruby version.

I tried:

```auto
version: 2

jobs:
  build:
    docker:
      - image: circleci/ruby:2.2.2

    working_directory: ~/repo

```

and I get:

```auto
.circleci/config.yml is valid

real 0m1.269s
user 0m0.152s
sys 0m0.068s

====>> Spin up Environment
Build-agent version 0.0.5895-01cdb92 (2018-05-29T20:07:10+0000)
Starting container circleci/ruby:2.2.2
  image cache not found on this host, downloading circleci/ruby:2.2.2
Error: Error response from daemon: manifest for circleci/ruby:2.2.2 not found

```

I tried several images from here:

[https://hub.docker.com/r/circleci/ruby/tags/](https://hub.docker.com/r/circleci/ruby/tags/)

And I also tried adding a step:

```auto
 - run:
    name: Set Ruby Version
    command: echo "ruby-2.2.2" > ~/.ruby-version

```

But that also failed.

Thank you

---

<div class="post-metadata">

**Author:** ![halfer](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/halfer/32/9083_2.png) [@halfer](https://discuss.circleci.com/u/halfer)\
**Post date:** [August 5, 2018, 10:36am UTC](https://discuss.circleci.com/t/image-for-ruby-2-2-2-error-response-from-daemon-manifest-for-circleci-ruby-2-2-2-not-found/24014/3 "2018-08-05T10:36:23Z")

</div>

It looks like 2.2.x is not in that list. I am not all that familiar with CircleCI’s preprepared images, but I wonder if you could use something lightweight and recent (e.g. [from here](https://hub.docker.com/r/circleci/node/tags/)) and the install and compile the version of Ruby you want from source?

It may only take a minute or two and so can be part of your build process, but if you want to speed this up, you can then make a custom image, containing that version, and stored in a private Docker registry.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/circleci/original/3X/5/1/511608acda8e85906e15909b57bd0a46c1dbe291.png) [@system](https://discuss.circleci.com/u/system)\
**Post date:** [November 3, 2018, 10:36am UTC](https://discuss.circleci.com/t/image-for-ruby-2-2-2-error-response-from-daemon-manifest-for-circleci-ruby-2-2-2-not-found/24014/4 "2018-11-03T10:36:28Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
