docker*: add and update Korean translation (#14117)

This commit is contained in:
코드싸이
2024-10-11 13:31:40 +09:00
committed by GitHub
parent f2069b5634
commit b1f220d087
32 changed files with 685 additions and 7 deletions

View 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 {{사용자}} {{컨테이너_이름}} {{명령}}`