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

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:

version: 2

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

    working_directory: ~/repo

and I get:

.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/

And I also tried adding a step:

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

But that also failed.

Thank you

1 Like

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) 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.

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