[root@host01-2 tmp]# docker run -it reg.cloud.com/ubuntu bash
root@5c47432901b6:/# ps -ef
PID TTY TIME CMD
2681 pts/0 00:00:00 bash
10149 pts/0 00:00:00 bash
10182 pts/0 00:00:00 ps
#프로세스가 몇 개 안
root@a36e01acc480:/# exit
exit
[root@host01-2 tmp]# docker run -it --pid=host reg.cloud.com/ubuntu bash
root@5c47432901b6:/# ps -ef
UID PID PPID C STIME TTY TIME CMD
root 1 0 0 May20 ? 00:00:04 /usr/lib/systemd/systemd --system --deserialize 15
root 2 0 0 May20 ? 00:00:00 [kthreadd]
root 3 2 0 May20 ? 00:00:00 [ksoftirqd/0]
root 5 2 0 May20 ? 00:00:00 [kworker/0:0H]
root 7 2 0 May20 ? 00:00:00 [migration/0]
root 8 2 0 May20 ? 00:00:00 [rcu_bh]
root 9 2 0 May20 ? 00:00:01 [rcu_sched]
root 10 2 0 May20 ? 00:00:00 [watchdog/0]
root 11 2 0 May20 ? 00:00:00 [watchdog/1]
root 12 2 0 May20 ? 00:00:00 [migration/1]
root 13 2 0 May20 ? 00:00:00 [ksoftirqd/1]
root 15 2 0 May20 ? 00:00:00 [kworker/1:0H]
root 17 2 0 May20 ? 00:00:00 [kdevtmpfs]
root 18 2 0 May20 ? 00:00:00 [netns]
root 19 2 0 May20 ? 00:00:00 [khungtaskd]
root 20 2 0 May20 ? 00:00:00 [writeback]
root 21 2 0 May20 ? 00:00:00 [kintegrityd]
root 22 2 0 May20 ? 00:00:00 [bioset]
root 23 2 0 May20 ? 00:00:00 [kblockd]
root 24 2 0 May20 ? 00:00:00 [md]
root 31 2 0 May20 ? 00:00:00 [kswapd0]
root 32 2 0 May20 ? 00:00:00 [ksmd]
root 33 2 0 May20 ? 00:00:00 [khugepaged]
root 34 2 0 May20 ? 00:00:00 [crypto]
root 42 2 0 May20 ? 00:00:00 [kthrotld]
root 44 2 0 May20 ? 00:00:00 [kmpath_rdacd]
root 45 2 0 May20 ? 00:00:00 [kpsmoused]
root 47 2 0 May20 ? 00:00:00 [ipv6_addrconf]
root 66 2 0 May20 ? 00:00:00 [deferwq]
root 98 2 0 May20 ? 00:00:00 [kauditd]
root 281 2 0 May20 ? 00:00:00 [scsi_eh_0]
root 282 2 0 May20 ? 00:00:00 [scsi_tmf_0]
root 283 2 0 May20 ? 00:00:00 [ata_sff]
root 284 2 0 May20 ? 00:00:00 [vmw_pvscsi_wq_0]
root 286 2 0 May20 ? 00:00:00 [scsi_eh_1]
root 288 2 0 May20 ? 00:00:00 [scsi_tmf_1]
root 289 2 0 May20 ? 00:00:00 [scsi_eh_2]
root 290 2 0 May20 ? 00:00:00 [scsi_eh_3]
root 291 2 0 May20 ? 00:00:00 [scsi_tmf_2]
root 292 2 0 May20 ? 00:00:00 [scsi_tmf_3]
root 293 2 0 May20 ? 00:00:00 [scsi_eh_4]
root 294 2 0 May20 ? 00:00:00 [scsi_tmf_4]
root 295 2 0 May20 ? 00:00:00 [scsi_eh_5]
root 296 2 0 May20 ? 00:00:00 [scsi_tmf_5]
root 297 2 0 May20 ? 00:00:00 [scsi_eh_6]
root 298 2 0 May20 ? 00:00:00 [scsi_tmf_6]
root 299 2 0 May20 ? 00:00:00 [scsi_eh_7]
root 300 2 0 May20 ? 00:00:00 [scsi_tmf_7]
root 301 2 0 May20 ? 00:00:00 [scsi_eh_8]
root 302 2 0 May20 ? 00:00:00 [scsi_tmf_8]
root 303 2 0 May20 ? 00:00:00 [scsi_eh_9]
root 304 2 0 May20 ? 00:00:00 [scsi_tmf_9]
root 305 2 0 May20 ? 00:00:00 [scsi_eh_10]
root 306 2 0 May20 ? 00:00:00 [scsi_tmf_10]
root 307 2 0 May20 ? 00:00:00 [scsi_eh_11]
root 308 2 0 May20 ? 00:00:00 [scsi_tmf_11]
root 309 2 0 May20 ? 00:00:00 [scsi_eh_12]
root 310 2 0 May20 ? 00:00:00 [scsi_tmf_12]
root 311 2 0 May20 ? 00:00:00 [scsi_eh_13]
root 312 2 0 May20 ? 00:00:00 [scsi_tmf_13]
root 313 2 0 May20 ? 00:00:00 [scsi_eh_14]
root 314 2 0 May20 ? 00:00:00 [scsi_tmf_14]
root 315 2 0 May20 ? 00:00:00 [scsi_eh_15]
root 316 2 0 May20 ? 00:00:00 [scsi_tmf_15]
root 317 2 0 May20 ? 00:00:00 [scsi_eh_16]
root 318 2 0 May20 ? 00:00:00 [scsi_tmf_16]
root 319 2 0 May20 ? 00:00:00 [scsi_eh_17]
root 320 2 0 May20 ? 00:00:00 [scsi_tmf_17]
root 321 2 0 May20 ? 00:00:00 [scsi_eh_18]
root 322 2 0 May20 ? 00:00:00 [scsi_tmf_18]
root 323 2 0 May20 ? 00:00:00 [scsi_eh_19]
root 324 2 0 May20 ? 00:00:00 [scsi_tmf_19]
root 325 2 0 May20 ? 00:00:00 [scsi_eh_20]
root 326 2 0 May20 ? 00:00:00 [scsi_tmf_20]
root 327 2 0 May20 ? 00:00:00 [scsi_eh_21]
root 328 2 0 May20 ? 00:00:00 [scsi_tmf_21]
root 329 2 0 May20 ? 00:00:00 [scsi_eh_22]
root 330 2 0 May20 ? 00:00:00 [scsi_tmf_22]
root 331 2 0 May20 ? 00:00:00 [scsi_eh_23]
root 332 2 0 May20 ? 00:00:00 [scsi_tmf_23]
root 333 2 0 May20 ? 00:00:00 [scsi_eh_24]
root 335 2 0 May20 ? 00:00:00 [scsi_eh_25]
root 336 2 0 May20 ? 00:00:00 [scsi_tmf_24]
root 337 2 0 May20 ? 00:00:00 [scsi_eh_26]
root 338 2 0 May20 ? 00:00:00 [scsi_tmf_26]
root 339 2 0 May20 ? 00:00:00 [scsi_eh_27]
root 340 2 0 May20 ? 00:00:00 [scsi_tmf_27]
root 341 2 0 May20 ? 00:00:00 [scsi_eh_28]
root 342 2 0 May20 ? 00:00:00 [scsi_tmf_28]
root 343 2 0 May20 ? 00:00:00 [scsi_eh_29]
root 344 2 0 May20 ? 00:00:00 [scsi_tmf_29]
root 345 2 0 May20 ? 00:00:00 [scsi_eh_30]
root 346 2 0 May20 ? 00:00:00 [scsi_tmf_30]
root 347 2 0 May20 ? 00:00:00 [scsi_eh_31]
root 348 2 0 May20 ? 00:00:00 [scsi_tmf_31]
root 349 2 0 May20 ? 00:00:00 [scsi_eh_32]
root 350 2 0 May20 ? 00:00:00 [scsi_tmf_32]
root 378 2 0 May20 ? 00:00:00 [kworker/u4:30]
root 379 2 0 May20 ? 00:00:39 [kworker/u4:31]
root 380 2 0 May20 ? 00:00:00 [scsi_tmf_25]
root 396 2 0 May20 ? 00:00:00 [ttm_swap]
root 466 2 0 May20 ? 00:00:00 [kdmflush]
root 467 2 0 May20 ? 00:00:00 [bioset]
root 478 2 0 May20 ? 00:00:00 [kdmflush]
root 479 2 0 May20 ? 00:00:00 [bioset]
root 492 2 0 May20 ? 00:00:00 [bioset]
root 493 2 0 May20 ? 00:00:00 [xfsalloc]
root 494 2 0 May20 ? 00:00:00 [xfs_mru_cache]
root 495 2 0 May20 ? 00:00:00 [xfs-buf/dm-0]
root 496 2 0 May20 ? 00:00:00 [xfs-data/dm-0]
root 497 2 0 May20 ? 00:00:00 [xfs-conv/dm-0]
root 498 2 0 May20 ? 00:00:00 [xfs-cil/dm-0]
root 499 2 0 May20 ? 00:00:00 [xfs-reclaim/dm-]
root 500 2 0 May20 ? 00:00:00 [xfs-log/dm-0]
root 501 2 0 May20 ? 00:00:00 [xfs-eofblocks/d]
root 502 2 0 May20 ? 00:00:12 [xfsaild/dm-0]
root 503 2 0 May20 ? 00:00:00 [kworker/0:1H]
root 572 1 0 May20 ? 00:00:01 /usr/lib/systemd/systemd-journald
root 592 1 0 May20 ? 00:00:00 /usr/sbin/lvmetad -f
root 601 1 0 May20 ? 00:00:00 /usr/lib/systemd/systemd-udevd
root 680 2 0 May20 ? 00:00:00 [xfs-buf/sda1]
root 681 2 0 May20 ? 00:00:00 [xfs-data/sda1]
root 682 2 0 May20 ? 00:00:00 [xfs-conv/sda1]
root 683 2 0 May20 ? 00:00:00 [xfs-cil/sda1]
root 684 2 0 May20 ? 00:00:00 [xfs-reclaim/sda]
root 685 2 0 May20 ? 00:00:00 [xfs-log/sda1]
root 686 2 0 May20 ? 00:00:00 [xfs-eofblocks/s]
root 687 2 0 May20 ? 00:00:00 [xfsaild/sda1]
root 716 2 0 May20 ? 00:00:01 [kworker/1:1H]
81 736 1 0 May20 ? 00:00:00 /bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation
999 738 1 0 May20 ? 00:00:00 /usr/lib/polkit-1/polkitd --no-debug
root 739 1 0 May20 ? 00:00:08 /usr/sbin/irqbalance --foreground
root 742 1 0 May20 ? 00:00:09 /usr/sbin/rsyslogd -n
root 743 1 0 May20 ? 00:00:00 /usr/lib/systemd/systemd-logind
root 761 1 0 May20 ? 00:00:00 /sbin/agetty --noclear tty1 linux
root 772 1 0 May20 ? 00:00:01 /usr/bin/python -Es /usr/sbin/firewalld --nofork --nopid
root 773 1 0 May20 ? 00:00:04 /usr/sbin/NetworkManager --no-daemon
root 1065 1 0 May20 ? 00:00:00 /usr/sbin/sshd -D
root 1066 1 0 May20 ? 00:00:25 /usr/bin/python -Es /usr/sbin/tuned -l -P
root 1153 1 0 May20 ? 00:00:01 /usr/libexec/postfix/master -w
89 1167 1153 0 May20 ? 00:00:00 qmgr -l -t unix -u
root 2675 1065 0 May21 ? 00:00:01 sshd: root@pts/0
root 2681 2675 0 May21 pts/0 00:00:00 -bash
root 2894 1 0 May21 ? 00:00:00 /usr/sbin/crond -n
root 3603 1 0 May21 ? 00:00:00 /sbin/auditd
root 3912 1 0 May21 ? 00:03:55 /usr/bin/dockerd
root 3917 3912 0 May21 ? 00:02:39 docker-containerd --config /var/run/docker/containerd/containerd.toml
89 8177 1153 0 00:27 ? 00:00:00 pickup -l -t unix -u
root 8946 2 0 01:28 ? 00:00:00 [kworker/0:2]
root 9186 2 0 01:33 ? 00:00:00 [kworker/0:3]
root 9421 2 0 01:38 ? 00:00:00 [kworker/1:0]
root 9668 1065 0 01:43 ? 00:00:00 sshd: root@pts/1
root 9672 9668 0 01:43 ? 00:00:00 -bash
root 9878 2 0 01:47 ? 00:00:00 [kworker/1:1]
root 9998 2 0 01:52 ? 00:00:00 [kworker/1:2]
root 10029 2 0 01:54 ? 00:00:00 [kworker/0:0]
root 10121 9672 2 01:56 ? 00:00:00 docker run -it --pid=host reg.cloud.com/ubuntu bash
root 10133 3917 0 01:56 ? 00:00:00 docker-containerd-shim -namespace moby -workdir /var/lib/docker/containerd/daemon/io.containerd.runtime.v1.linux/moby/5
root 10149 10133 0 01:56 pts/0 00:00:00 bash
root 10183 10149 0 01:56 pts/0 00:00:00 ps -ef