docker*: add and update Korean translation (#14117)
This commit is contained in:
28
pages.ko/common/docker-exec.md
Normal file
28
pages.ko/common/docker-exec.md
Normal file
@@ -0,0 +1,28 @@
|
||||
# docker exec
|
||||
|
||||
> 이미 실행 중인 Docker 컨테이너에서 명령을 실행.
|
||||
> 더 많은 정보: <https://docs.docker.com/reference/cli/docker/container/exec/>.
|
||||
|
||||
- 이미 실행 중인 컨테이너에서 대화형 셸 세션 시작:
|
||||
|
||||
`docker exec --interactive --tty {{컨테이너_이름}} {{/bin/bash}}`
|
||||
|
||||
- 실행 중인 컨테이너에서 백그라운드(분리 모드)로 명령 실행:
|
||||
|
||||
`docker exec --detach {{컨테이너_이름}} {{명령}}`
|
||||
|
||||
- 특정 명령을 실행할 작업 디렉토리 선택:
|
||||
|
||||
`docker exec --interactive --tty --workdir {{경로/대상/폴더}} {{컨테이너_이름}} {{명령}}`
|
||||
|
||||
- 기존 컨테이너에서 백그라운드로 명령을 실행하되 `stdin`을 열어 둠:
|
||||
|
||||
`docker exec --interactive --detach {{컨테이너_이름}} {{명령}}`
|
||||
|
||||
- 실행 중인 Bash 세션에서 환경 변수를 설정:
|
||||
|
||||
`docker exec --interactive --tty --env {{변수_이름}}={{값}} {{컨테이너_이름}} {{/bin/bash}}`
|
||||
|
||||
- 특정 사용자로 명령 실행:
|
||||
|
||||
`docker exec --user {{사용자}} {{컨테이너_이름}} {{명령}}`
|
Reference in New Issue
Block a user