如何在Docker上安装Ruby? [英] How to install Ruby on docker?

查看:767
本文介绍了如何在Docker上安装Ruby?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在码头上安装红宝石。我可以安装1.9版本,但不可能安装2.2.0及更高版本的最新版本。我实际上是试图在码头上设置葫芦。已尝试。每当我尝试安装calabash-android它得到错误

 错误:安装calabash-android时出错:
luffa需要Ruby版本> = 2.0。


解决方案

您可以从...开始查看dockerfile: p>

  FROM ruby​​:2.3.0 

这将使用已安装ruby的 docker image ruby​​


I am trying to install ruby on docker. I could install the 1.9 versions but it is not possible to install the latest version such as 2.2.0 and above. I am actually trying to set up calabash on docker. Have tried this. Whenever I try to install calabash-android in it getting the error

ERROR:  Error installing calabash-android:
luffa requires Ruby version >= 2.0.

解决方案

You could start view a dockerfile starting with:

FROM ruby:2.3.0

That would use the docker image ruby, with ruby already installed.

这篇关于如何在Docker上安装Ruby?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆