반응형
docker와 마찬가지로 docker-compose도 자동완성을 할 수 있다.
설치가 안되어 있을 때...
설치 방법
curl -s -L https://raw.githubusercontent.com/docker/compose/master/contrib/completion/bash/docker-compose -o /etc/bash_completion.d/docker-compose
[root@ip-172-31-23-17 ~]# ls -al /etc/bash_completion.d/docker-compose
[root@ip-172-31-23-17 ~]# curl -s -L https://raw.githubusercontent.com/docker/compose/master/contrib/completion/bash/docker-compose -o /etc/bash_completion.d/docker-compose
[root@ip-172-31-23-17 ~]# ls -al /etc/bash_completion.d/docker-compose
-rw-r--r-- 1 root root 13500 Mar 28 06:07 /etc/bash_completion.d/docker-compose
설치 완료 후 재로그인을 한다.
[ec2-user@ip-172-31-23-17 ~]$ docker-compose
build create events help kill pause ps push rm
scale stop unpause version config down exec images logs
port pull restart run start top up
참고
2022.03.28 - [IT/Container] - [docker] 자동완성 - bash-completion
반응형
'IT > Container' 카테고리의 다른 글
[Docker] docker cache 삭제 (0) | 2023.02.21 |
---|---|
[docker] 자동완성 - bash-completion (0) | 2022.03.28 |
[docker] mac에 docker설치 하기 (인텔칩셋) (0) | 2021.06.09 |
[Docker] mysql docker로 실행하기.. (0) | 2021.03.04 |
[Docker] Ubuntu 18.04.x LTS에 docker 설치 하기 (0) | 2021.01.07 |