File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change
1
+ # 내가 사용하는 도커 명령어를 하나씩 수집한다...
2
+
3
+ ## 도커 컨테이너, 이미지 목록
4
+
5
+ ``` shell
6
+ $ docker ps -a // 컨테이너 목록 조회
7
+ $ docker images // 이미지 목록 조회
8
+
9
+ $ docker rm [컨테이너명] // 컨테이너 지우기
10
+ $ docker rmi [이미지아이디] // 이미지 지우기
11
+ ```
12
+
13
+ ## run 옵션
14
+
15
+ ### - d
16
+
17
+ : 백그라운드로 실행
18
+
19
+ ### -p
20
+
21
+ : 컨테이너 외부 포트, 내부 포트 설정
22
+
23
+ ## log 보기
24
+
25
+ ``` shell
26
+ $ docker logs [컨테이너명] // 모든 로그 다나온다
27
+
28
+
29
+ // 여러가지 옵션 주기 가능
30
+ --details Show extra details provided to logs
31
+ -f, --follow Follow log output
32
+ --since string Show logs since timestamp (e.g. 2013-01-02T13:23:37Z) or relative (e.g. 42m for 42 minutes)
33
+ -n, --tail string Number of lines to show from the end of the logs (default " all" )
34
+ -t, --timestamps Show timestamps
35
+ --until string Show logs before a timestamp (e.g. 2013-01-02T13:23:37Z) or relative (e.g. 42m for 42 minutes)
36
+ ```
You can’t perform that action at this time.
0 commit comments