티스토리 뷰
Container ID/Name 확인
$ docker container ls
# 결과 예시
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
123456789010 server1 "~~~" About an hour ago Up About an hour 0.0.0.0:3300->3000/tcp server123
Container 접속
컨테이너의 ID를 입력해도 되고, 컨테이너의 Name을 입력해도 된다.
$ docker exec -it CONTAINER-ID/NAME /bin/bash
- docker exec options
-d, --detach Detached mode: run command in the background
--detach-keys string Override the key sequence for detaching a container
-e, --env list Set environment variables
--env-file list Read in a file of environment variables
-i, --interactive Keep STDIN open even if not attached
--privileged Give extended privileges to the command
-t, --tty Allocate a pseudo-TTY
-u, --user string Username or UID (format: "<name|uid>[:<group|gid>]")
-w, --workdir string Working directory inside the container
'Docker' 카테고리의 다른 글
[Docker]Mysql Docker container 생성 (f. Error "server gave HTTP response to HTTPS client") (0) | 2024.01.09 |
---|
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- 람다
- NestJS
- nodejs
- 도커
- github
- JavaScript
- ChromeExtension
- 깃헙
- container접속
- contentScript.js
- serverless
- 서버리스
- Error "server gave HTTP response to HTTPS client"
- 웹훅
- docker exec
- git동기화
- should
- Hoisting
- elasticsearch
- background.js
- AWS
- docker
- Lambda
- branch조회
- aws cli
- 디스코드
- 크롬익스텐션
- webhook
- elastic-builder
- docker-compose