LoginSignup
9
3

More than 5 years have passed since last update.

docker execするのがめんどくさ過ぎる時の便利コマンド

Last updated at Posted at 2017-04-06

コンテナにbashでログインするのがめんどくさいのでpecoを使って簡略化しました
ない場合はbrew等でインストールして下さい

brew install peco

brew使ってない方は go get でインストールして下さい

go get github.com/peco/peco/cmd/peco

本題:deというalias作成

alias de='docker exec -it $(docker ps | peco | cut -d " " -f 1) /bin/bash'

色んな使い方出来るpecoめっちゃ便利

9
3
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
9
3