LoginSignup
17
7

More than 5 years have passed since last update.

docker alpineでpryデバッグ中に less -Rが立ち上がらない

Last updated at Posted at 2016-11-07

docker開発環境でpryデバッグ中にlessが立ち上がらず、意外と情報なくてさまよったのでメモ。

alpineコンテナ利用していると、 less に -R オプションないよって怒られて、 methodsとか使えない。

使えない理由はalpineのlessにRオプションがない軽量なものがインストールされているから。

GNUのlessを使えば一発解決。

Dockerfile

FROM ruby:alpine

# ~~

RUN apk update && \
    apk add less

git diffもこれで色つくみたい!

17
7
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
17
7