LoginSignup
1
0

More than 1 year has passed since last update.

Dockerコンテナ内でllコマンドを使う

Posted at

Dockerfileに以下のRUNコマンドを追記するとコンテナの中でもllが使える。
--colorがないと白黒になるので一緒に書いた方が便利。

FROM php:7.4-apache

RUN echo -e "\n\
alias ll='ls -la --color'\n\
" >> /root/.bashrc
1
0
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
1
0