LoginSignup
2
2

More than 5 years have passed since last update.

[小技] alpine イメージの中を探索する

Last updated at Posted at 2018-09-19

Dockerfile を書いてるときに実際に alpine イメージの中でコードを実行したり、ビルトインで入ってるコマンドを確認したり、 apk のパッケージを検索したい。

TL; DR

docker run -it --rm alpine sh

使い方

.bashrc
alias alpine-sh="docker run -it --rm alpine sh"
$ alpine-sh

とかやると良さそう。

2
2
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
2
2