將
https://github.com/docker/docker/blob/master/contrib/completion/bash/docker (採用)
或
https://gist.github.com/felixbuenemann/5605854
的內容複製貼上到
/etc/bash_completion.d/docker
然後重新登錄
或( 於上面第一個網址內容註解中的教學 )
# - copy this file to e.g. ~/.docker-completion.sh and add the line
# below to your .bashrc after bash completion features are loaded
# . ~/.docker-completion.sh
Docker's process的attach 和 detach
detach - Ctrl-p + Ctrl-q
attach - docker attach -sig-proxy=false container_id ( ex. docker attach -sig-proxy=false 304f5db405ec )
參考資料:
http://stackoverflow.com/questions/19688314/how-do-you-attach-and-detach-from-dockers-process
沒有留言:
張貼留言