なにもわからない

man したい alpine ワンライナー

October 12, 2019

macOS と Linux を跨って使うような Shell Script や Makefile を書く際に、オプションなど挙動の差をどう解決するか考えることがよくある。 そんなときにサクっと alpine を Docker で立ち上げて man を見るのに使えるワンライナーのメモです。

docker run --rm -it alpine ash -c 'apk add --update --no-cache man man-pages coreutils-doc && ash'

PAGER=less の方が慣れてるのであれば

docker run --rm -it -e PAGER=less alpine ash -c 'apk add --update --no-cache man man-pages coreutils-doc && ash'

alpine も他 Linuix ディストリビューションとちょいちょい動き違ったりするんですが、最近 alpine びいきなので(まぁ)。

[http://linuxcommand.sourceforge.net/lc3manpages/man1.html:embed:cite]

[https://wiki.alpinelinux.org/wiki/Howtogetregularstuff_working:embed:cite]

[https://linuxjm.osdn.jp/html/LDP_man-pages/man7/man-pages.7.html:embed:cite]

[https://pkgs.alpinelinux.org/contents?branch=edge&name=coreutils&arch=armhf&repo=main:embed:cite]


気分で技術系の雑記を書きます

@tamakiii

© 2020