docker run busybox echo hello world

- busybox는 docker container가 실행되는 환경(파일 시스템)

- docker로 실행되는 container는 명시한 busybox 환경 하에서 실행

 

echo hello world

- host환경(루트 파일 시스템)에서 실행

 

container는 image에 따라서 실행되는 환경(파일 시스템)이 달라진다.

container는 host시스템의 커널을 사용한다.

 

host 상에서 실행 중인 셀의 PID = 88827

container로 실행한 bash 셀의 PID = 1

 

host 상에서 pstree 를 실행하면, 모든 프로세스가 1번 프로세스(systemd)에 물려있는 것을 확인할 수 있음

 

반응형

'스타트업 > 컴퓨터' 카테고리의 다른 글

[컴퓨터] 구글 알리미 기능  (0) 2020.04.05
[컴퓨터] tmux  (0) 2020.03.25
[컴퓨터] Jenkins  (0) 2020.02.13
[docker] 도커 실행 명령어  (0) 2020.02.07
[Python] AssertionError  (0) 2020.02.05

+ Recent posts