本文和 容器到底是什么和宿主机中的进程什么关系—概述 的补充
[root@test-dbs ~]# docker version
Client: Docker Engine - Community
Version: 20.10.10
API version: 1.41
Go version: go1.16.9
Git commit: b485636
Built: Mon Oct 25 07:44:50 2021
OS/Arch: linux/amd64
Context: default
Experimental: true
Server: Docker Engine - Community
Engine:
Version: 20.10.10
API version: 1.41 (minimum version 1.12)
Go version: go1.16.9
Git commit: e2f740d
Built: Mon Oct 25 07:43:13 2021
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.4.11
GitCommit: 5b46e404f6b9f661a205e28d59c982d3634148f8
runc:
Version: 1.0.2
GitCommit: v1.0.2-0-g52b36a2
docker-init:
Version: 0.19.0
GitCommit: de40ad0
[root@test-dbs ~]#
step1: 启动一个容器
[root@test-dbs ~]# docker run -itd --name ubuntu_ps_1112 ubuntu /bin/bash
Unable to find image 'ubuntu:latest' locally
latest: Pulling from library/ubuntu
7b1a6ab2e44d: Pull complete
Digest: sha256:626ffe58f6e7566e00254b638eb7e0f3b11d4da9675088f4781a50ae288f3322
Status: Downloaded newer image for ubuntu:latest
d9d4d9d8cbce9e936deb08c8ca29d10318e1eb86dc64441367e1748b5cfedbfa
[root@test-dbs ~]#
[root@test-dbs ~]#
[root@test-dbs ~]# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
d9d4d9d8cbce ubuntu "/bin/bash" 8 minutes ago Up 8 minutes ubuntu_ps_1112
[root@test-dbs ~]#
[root@test-dbs ~]# docker top d9d4d9d8cbce
UID PID PPID C STIME TTY TIME CMD
root 10639 10618 0 17:09 pts/0 00:00:00 /bin/bash
[root@test-dbs ~]#
[root@test-dbs ~]#
[root@test-dbs ~]# ps -ajx
PPID PID PGID SID TTY TPGID STAT UID TIME COMMAND
0 1 1 1 ? -1 Ss 0 0:37 /usr/lib/systemd/systemd --switched-root --system --deserialize 22
0 2 0 0 ? -1 S 0 0:00 [kthreadd]
2 3 0 0 ? -1 S 0 0:00 [ksoftirqd/0]
2 5 0 0 ? -1 S< 0 0:00 [kworker/0:0H]
2 6 0 0 ? -1 S 0 0:02 [kworker/u16:0]
2 7 0 0 ? -1 S 0 0:00 [migration/0]
2 8 0 0 ? -1 S 0 0:00 [rcu_bh]
2 9 0 0 ? -1 S 0 0:40 [rcu_sched]
2 10 0 0 ? -1 S< 0 0:00 [lru-add-drain]
2 11 0 0 ? -1 S 0 0:00 [watchdog/0]
2 12 0 0 ? -1 S 0 0:00 [watchdog/1]
2 13 0 0 ? -1 S 0 0:01 [migration/1]
2 14 0 0 ? -1 S 0 0:00 [ksoftirqd/1]
2 16 0 0 ? -1 S< 0 0:00 [kworker/1:0H]
2 17 0 0 ? -1 S 0 0:00 [watchdog/2]
2 18 0 0 ? -1 S 0 0:00 [migration/2]
2 19 0 0 ? -1 S 0 0:00 [ksoftirqd/2]
2 21 0 0 ? -1 S< 0 0:00 [kworker/2:0H]
2 22 0 0 ? -1 S 0 0:00 [watchdog/3]
2 23 0 0 ? -1 S 0 0:01 [migration/3]
2 24 0 0 ? -1 S 0 0:00 [ksoftirqd/3]
2 25 0 0 ? -1 R 0 0:03 [kworker/3:0]
2 26 0 0 ? -1 S< 0 0:00 [kworker/3:0H]
2 27 0 0 ? -1 S 0 0:00 [watchdog/4]
2 28 0 0 ? -1 S 0 0:00 [migration/4]
2 29 0 0 ? -1 S 0 0:00 [ksoftirqd/4]
2 31 0 0 ? -1 S< 0 0:00 [kworker/4:0H]
2 32 0 0 ? -1 S 0 0:00 [watchdog/5]
2 33 0 0 ? -1 S 0 0:01 [migration/5]
2 34 0 0 ? -1 S 0 0:00 [ksoftirqd/5]
2 36 0 0 ? -1 S< 0 0:00 [kworker/5:0H]
2 37 0 0 ? -1 S 0 0:00 [watchdog/6]
2 38 0 0 ? -1 S 0 0:00 [migration/6]
2 39 0 0 ? -1 S 0 0:00 [ksoftirqd/6]
2 41 0 0 ? -1 S< 0 0:00 [kworker/6:0H]
2 42 0 0 ? -1 S 0 0:00 [watchdog/7]
2 43 0 0 ? -1 S 0 0:01 [migration/7]
2 44 0 0 ? -1 S 0 0:00 [ksoftirqd/7]
2 45 0 0 ? -1 S 0 0:19 [kworker/7:0]
2 46 0 0 ? -1 S< 0 0:00 [kworker/7:0H]
2 48 0 0 ? -1 S 0 0:00 [kdevtmpfs]
2 49 0 0 ? -1 S< 0 0:00 [netns]
2 50 0 0 ? -1 S 0 0:00 [khungtaskd]
2 51 0 0 ? -1 S< 0 0:00 [writeback]
2 52 0 0 ? -1 S< 0 0:00 [kintegrityd]
2 53 0 0 ? -1 S< 0 0:00 [bioset]
2 54 0 0 ? -1 S< 0 0:00 [bioset]
2 55 0 0 ? -1 S< 0 0:00 [bioset]
2 56 0 0 ? -1 S< 0 0:00 [kblockd]
2 57 0 0 ? -1 S< 0 0:00 [md]
2 58 0 0 ? -1 S< 0 0:00 [edac-poller]
2 59 0 0 ? -1 S< 0 0:00 [watchdogd]
2 60 0 0 ? -1 S 0 0:16 [kworker/0:1]
2 61 0 0 ? -1 S 0 0:03 [kworker/1:1]
2 66 0 0 ? -1 S 0 0:05 [kswapd0]
2 67 0 0 ? -1 SN 0 0:00 [ksmd]
2 68 0 0 ? -1 SN 0 0:02 [khugepaged]
2 69 0 0 ? -1 S< 0 0:00 [crypto]
2 77 0 0 ? -1 S< 0 0:00 [kthrotld]
2 79 0 0 ? -1 S< 0 0:00 [kmpath_rdacd]
2 80 0 0 ? -1 S< 0 0:00 [kaluad]
2 81 0 0 ? -1 S< 0 0:00 [kpsmoused]
2 82 0 0 ? -1 S< 0 0:00 [ipv6_addrconf]
2 95 0 0 ? -1 S< 0 0:00 [deferwq]
2 130 0 0 ? -1 S 0 0:23 [kauditd]
4082 322 322 322 ? -1 Ss 0 0:00 sshd: root@pts/0,pts/1
322 325 325 325 pts/0 11708 Ss 0 0:00 -bash
2 514 0 0 ? -1 S 0 0:06 [kworker/4:2]
2 814 0 0 ? -1 S< 0 0:00 [ata_sff]
322 919 919 919 pts/1 919 Ss+ 0 0:00 -bash
2 1663 0 0 ? -1 S 0 0:00 [scsi_eh_0]
2 1670 0 0 ? -1 S< 0 0:00 [scsi_tmf_0]
2 1683 0 0 ? -1 S 0 0:00 [scsi_eh_1]
2 1684 0 0 ? -1 S< 0 0:00 [scsi_tmf_1]
2 1690 0 0 ? -1 S< 0 0:00 [ttm_swap]
2 1765 0 0 ? -1 S< 0 0:09 [kworker/0:1H]
2 1875 0 0 ? -1 S< 0 0:00 [bioset]
2 1878 0 0 ? -1 S< 0 0:00 [xfsalloc]
2 1879 0 0 ? -1 S< 0 0:00 [xfs_mru_cache]
2 1886 0 0 ? -1 S< 0 0:00 [xfs-buf/vda1]
2 1887 0 0 ? -1 S< 0 0:00 [xfs-data/vda1]
2 1889 0 0 ? -1 S< 0 0:00 [xfs-conv/vda1]
2 1890 0 0 ? -1 S< 0 0:00 [xfs-cil/vda1]
2 1892 0 0 ? -1 S< 0 0:00 [xfs-reclaim/vda]
2 1893 0 0 ? -1 S< 0 0:00 [xfs-log/vda1]
2 1895 0 0 ? -1 S< 0 0:00 [xfs-eofblocks/v]
2 1901 0 0 ? -1 S 0 0:48 [xfsaild/vda1]
2 1902 0 0 ? -1 S< 0 0:01 [kworker/2:1H]
1 1970 1970 1970 ? -1 Ss 0 0:05 /usr/lib/systemd/systemd-journald
1 1999 1999 1999 ? -1 Ss 0 0:00 /usr/lib/systemd/systemd-udevd
4341 2812 4341 4341 ? -1 S 89 0:00 pickup -l -t unix -u
2 3023 0 0 ? -1 S< 0 0:02 [kworker/4:1H]
1 3045 3045 3045 ? -1 Ssl 999 0:00 /usr/lib/polkit-1/polkitd --no-debug
1 3072 3072 3072 ? -1 Ss 0 0:11 /usr/sbin/irqbalance --foreground
1 3098 3098 3098 ? -1 Ss 0 0:00 /usr/lib/systemd/systemd-logind
1 3100 3100 3100 ? -1 Ss 81 0:00 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation
1 3102 3102 3102 ? -1 Ssl 28 0:06 /usr/sbin/nscd
1 3177 3177 3177 ? -1 Ss 38 0:00 /usr/sbin/ntpd -u ntp:ntp -g
2 3213 0 0 ? -1 S< 0 0:00 [nfit]
1 3231 3231 3231 ? -1 Ssl 0 0:03 /usr/sbin/NetworkManager --no-daemon
1 3259 3259 3259 ? -1 Ss 0 0:00 /usr/sbin/crond -n
1 3374 3374 3374 tty1 3374 Ss+ 0 0:00 /sbin/agetty --noclear tty1 linux
1 3826 3224 3224 ? -1 Sl 0 1:03 /usr/local/share/jcloud/ifrit/sbin/ifrit-supervise
3826 3837 3224 3224 ? -1 Sl 0 6:16 /usr/local/share/jcloud/ifrit/sbin/ifrit-agent
3231 3866 3866 3231 ? -1 S 0 0:00 /sbin/dhclient -d -q -sf /usr/libexec/nm-dhcp-helper -pf /var/run/dhclient-eth0.pid -lf /var/lib/NetworkManager/dhclient-3a68ceee-2
2 3897 0 0 ? -1 S< 0 0:01 [kworker/6:1H]
1 4082 4082 4082 ? -1 Ss 0 0:02 /usr/sbin/sshd -D
1 4085 4085 4085 ? -1 Ssl 0 0:10 /usr/sbin/rsyslogd -n
1 4088 4088 4088 ? -1 Ssl 0 0:20 /usr/bin/python2 -Es /usr/sbin/tuned -l -P
1 4253 4252 4252 ? -1 Sl 27 19:22 /usr/sbin/mysqld --daemonize --pid-file=/var/run/mysqld/mysqld.pid
1 4273 4273 4273 ? -1 Ssl 0 9:10 /usr/local/share/jcloud/agent/core/JCSAgentCore >/dev/null 2>&1
2 4275 0 0 ? -1 S< 0 0:00 [kworker/5:1H]
2 4276 0 0 ? -1 S< 0 0:00 [kworker/7:1H]
2 4277 0 0 ? -1 S< 0 0:00 [kworker/3:1H]
1 4289 4287 4287 ? -1 S 0 0:58 python /usr/bin/denyhosts.py --daemon --config=/usr/share/denyhosts/denyhosts.cfg
2 4316 0 0 ? -1 S< 0 0:00 [kworker/1:1H]
1 4318 4318 4318 ? -1 Ss 0 0:08 /usr/local/share/jcloud/jdog-monitor/bin/jdog-watchdog
1 4341 4341 4341 ? -1 Ss 0 0:00 /usr/libexec/postfix/master -w
4341 4343 4341 4341 ? -1 S 89 0:00 qmgr -l -t unix -u
4318 4683 4318 4318 ? -1 Sl 0 2:33 /usr/local/share/jcloud/jdog-monitor/bin/jdog-monitor.1.1.0.4
4318 4740 4318 4318 ? -1 Sl 0 30:28 /usr/local/share/jcloud/jdog-monitor/deploy/kunlunmirror/1_9a9c4e047b4f1b16e8d7fb1ff3e69223/bin/jdog-kunlunmirror
4273 7656 7656 4273 ? -1 Sl 0 3:20 /usr/local/share/jcloud/agent/plugins/UpgradePlugin-1.0.736.e1d0167/UpgradePlugin -l unix:///usr/local/share/jcloud/agent/plugins/U
4273 7657 7657 4273 ? -1 Sl 0 7:59 /usr/local/share/jcloud/agent/plugins/MonitorPlugin-3.0.1042.d89c570/MonitorPlugin -l unix:///usr/local/share/jcloud/agent/plugins/
2 9204 0 0 ? -1 S 0 0:00 [kworker/0:0]
2 9490 0 0 ? -1 S 0 0:00 [kworker/5:2]
2 9872 0 0 ? -1 S 0 0:00 [kworker/5:0]
1 10316 10316 10316 ? -1 Ssl 0 0:01 /usr/bin/containerd
1 10331 10331 10331 ? -1 Ssl 0 0:03 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock
2 10594 0 0 ? -1 S 0 0:00 [kworker/6:2]
1 10618 10618 10316 ? -1 Sl 0 0:00 /usr/bin/containerd-shim-runc-v2 -namespace moby -id d9d4d9d8cbce9e936deb08c8ca29d10318e1eb86dc64441367e1748b5cfedbfa -address /run
10618 10639 10639 10639 pts/0 10639 Ss+ 0 0:00 /bin/bash
2 11179 0 0 ? -1 S 0 0:00 [kworker/2:0]
2 11206 0 0 ? -1 S 0 0:00 [kworker/5:1]
2 11379 0 0 ? -1 S 0 0:00 [kworker/u16:2]
325 11708 11708 325 pts/0 11708 R+ 0 0:00 ps -ajx
2 15647 0 0 ? -1 S 0 0:00 [kworker/1:2]
2 26026 0 0 ? -1 S 0 0:00 [kworker/6:1]
2 26028 0 0 ? -1 S 0 0:00 [kworker/2:1]
2 26637 0 0 ? -1 S 0 0:00 [kworker/7:2]
2 26993 0 0 ? -1 S 0 0:00 [kworker/4:0]
2 26995 0 0 ? -1 S 0 0:00 [kworker/3:1]
[root@test-dbs ~]#
[root@test-dbs ~]# docker exec -it d9d4d9d8cbce /bin/bash ----连接上面用后台方式启动的容器
root@d9d4d9d8cbce:/#
root@d9d4d9d8cbce:/#
root@d9d4d9d8cbce:/# ps -ef
UID PID PPID C STIME TTY TIME CMD
root 1 0 0 09:09 pts/0 00:00:00 /bin/bash -------这是 docker run 指定的命令
root 9 0 0 09:19 pts/1 00:00:00 /bin/bash -------这是 docker exec 指定的命令
root 19 9 0 09:19 pts/1 00:00:00 ps -ef
root@d9d4d9d8cbce:/#
step2: 因为上面的窗口已经进入容器里了, 再开一个窗口,执行 docker top,可以看到容器中启动的进程和系统中的对应
[root@test-dbs ~]#
[root@test-dbs ~]# docker top d9d4d9d8cbce
UID PID PPID C STIME TTY TIME CMD
root 10639 10618 0 17:09 pts/0 00:00:00 /bin/bash
root 11840 10618 0 17:19 pts/1 00:00:00 /bin/bash
[root@test-dbs ~]#
[root@test-dbs ~]# ps -ajx
PPID PID PGID SID TTY TPGID STAT UID TIME COMMAND
0 1 1 1 ? -1 Ss 0 0:37 /usr/lib/systemd/systemd --switched-root --system --deserialize 22
0 2 0 0 ? -1 S 0 0:00 [kthreadd]
2 3 0 0 ? -1 S 0 0:00 [ksoftirqd/0]
2 5 0 0 ? -1 S< 0 0:00 [kworker/0:0H]
2 6 0 0 ? -1 S 0 0:02 [kworker/u16:0]
2 7 0 0 ? -1 S 0 0:00 [migration/0]
2 8 0 0 ? -1 S 0 0:00 [rcu_bh]
2 9 0 0 ? -1 S 0 0:40 [rcu_sched]
2 10 0 0 ? -1 S< 0 0:00 [lru-add-drain]
2 11 0 0 ? -1 S 0 0:00 [watchdog/0]
2 12 0 0 ? -1 S 0 0:00 [watchdog/1]
2 13 0 0 ? -1 S 0 0:01 [migration/1]
2 14 0 0 ? -1 S 0 0:00 [ksoftirqd/1]
2 16 0 0 ? -1 S< 0 0:00 [kworker/1:0H]
2 17 0 0 ? -1 S 0 0:00 [watchdog/2]
2 18 0 0 ? -1 S 0 0:00 [migration/2]
2 19 0 0 ? -1 S 0 0:00 [ksoftirqd/2]
2 21 0 0 ? -1 S< 0 0:00 [kworker/2:0H]
2 22 0 0 ? -1 S 0 0:00 [watchdog/3]
2 23 0 0 ? -1 S 0 0:01 [migration/3]
2 24 0 0 ? -1 S 0 0:00 [ksoftirqd/3]
2 25 0 0 ? -1 S 0 0:03 [kworker/3:0]
2 26 0 0 ? -1 S< 0 0:00 [kworker/3:0H]
2 27 0 0 ? -1 S 0 0:00 [watchdog/4]
2 28 0 0 ? -1 S 0 0:00 [migration/4]
2 29 0 0 ? -1 S 0 0:00 [ksoftirqd/4]
2 31 0 0 ? -1 S< 0 0:00 [kworker/4:0H]
2 32 0 0 ? -1 S 0 0:00 [watchdog/5]
2 33 0 0 ? -1 S 0 0:01 [migration/5]
2 34 0 0 ? -1 S 0 0:00 [ksoftirqd/5]
2 36 0 0 ? -1 S< 0 0:00 [kworker/5:0H]
2 37 0 0 ? -1 S 0 0:00 [watchdog/6]
2 38 0 0 ? -1 S 0 0:00 [migration/6]
2 39 0 0 ? -1 S 0 0:00 [ksoftirqd/6]
2 41 0 0 ? -1 S< 0 0:00 [kworker/6:0H]
2 42 0 0 ? -1 S 0 0:00 [watchdog/7]
2 43 0 0 ? -1 S 0 0:01 [migration/7]
2 44 0 0 ? -1 S 0 0:00 [ksoftirqd/7]
2 45 0 0 ? -1 R 0 0:19 [kworker/7:0]
2 46 0 0 ? -1 S< 0 0:00 [kworker/7:0H]
2 48 0 0 ? -1 S 0 0:00 [kdevtmpfs]
2 49 0 0 ? -1 S< 0 0:00 [netns]
2 50 0 0 ? -1 S 0 0:00 [khungtaskd]
2 51 0 0 ? -1 S< 0 0:00 [writeback]
2 52 0 0 ? -1 S< 0 0:00 [kintegrityd]
2 53 0 0 ? -1 S< 0 0:00 [bioset]
2 54 0 0 ? -1 S< 0 0:00 [bioset]
2 55 0 0 ? -1 S< 0 0:00 [bioset]
2 56 0 0 ? -1 S< 0 0:00 [kblockd]
2 57 0 0 ? -1 S< 0 0:00 [md]
2 58 0 0 ? -1 S< 0 0:00 [edac-poller]
2 59 0 0 ? -1 S< 0 0:00 [watchdogd]
2 60 0 0 ? -1 S 0 0:16 [kworker/0:1]
2 61 0 0 ? -1 S 0 0:03 [kworker/1:1]
2 66 0 0 ? -1 S 0 0:05 [kswapd0]
2 67 0 0 ? -1 SN 0 0:00 [ksmd]
2 68 0 0 ? -1 SN 0 0:02 [khugepaged]
2 69 0 0 ? -1 S< 0 0:00 [crypto]
2 77 0 0 ? -1 S< 0 0:00 [kthrotld]
2 79 0 0 ? -1 S< 0 0:00 [kmpath_rdacd]
2 80 0 0 ? -1 S< 0 0:00 [kaluad]
2 81 0 0 ? -1 S< 0 0:00 [kpsmoused]
2 82 0 0 ? -1 S< 0 0:00 [ipv6_addrconf]
2 95 0 0 ? -1 S< 0 0:00 [deferwq]
2 130 0 0 ? -1 S 0 0:23 [kauditd]
4082 322 322 322 ? -1 Ss 0 0:00 sshd: root@pts/0,pts/1
322 325 325 325 pts/0 11821 Ss 0 0:00 -bash
2 514 0 0 ? -1 S 0 0:06 [kworker/4:2]
2 814 0 0 ? -1 S< 0 0:00 [ata_sff]
322 919 919 919 pts/1 11929 Ss 0 0:00 -bash
2 1663 0 0 ? -1 S 0 0:00 [scsi_eh_0]
2 1670 0 0 ? -1 S< 0 0:00 [scsi_tmf_0]
2 1683 0 0 ? -1 S 0 0:00 [scsi_eh_1]
2 1684 0 0 ? -1 S< 0 0:00 [scsi_tmf_1]
2 1690 0 0 ? -1 S< 0 0:00 [ttm_swap]
2 1765 0 0 ? -1 S< 0 0:09 [kworker/0:1H]
2 1875 0 0 ? -1 S< 0 0:00 [bioset]
2 1878 0 0 ? -1 S< 0 0:00 [xfsalloc]
2 1879 0 0 ? -1 S< 0 0:00 [xfs_mru_cache]
2 1886 0 0 ? -1 S< 0 0:00 [xfs-buf/vda1]
2 1887 0 0 ? -1 S< 0 0:00 [xfs-data/vda1]
2 1889 0 0 ? -1 S< 0 0:00 [xfs-conv/vda1]
2 1890 0 0 ? -1 S< 0 0:00 [xfs-cil/vda1]
2 1892 0 0 ? -1 S< 0 0:00 [xfs-reclaim/vda]
2 1893 0 0 ? -1 S< 0 0:00 [xfs-log/vda1]
2 1895 0 0 ? -1 S< 0 0:00 [xfs-eofblocks/v]
2 1901 0 0 ? -1 S 0 0:48 [xfsaild/vda1]
2 1902 0 0 ? -1 S< 0 0:01 [kworker/2:1H]
1 1970 1970 1970 ? -1 Ss 0 0:05 /usr/lib/systemd/systemd-journald
1 1999 1999 1999 ? -1 Ss 0 0:00 /usr/lib/systemd/systemd-udevd
4341 2812 4341 4341 ? -1 S 89 0:00 pickup -l -t unix -u
2 3023 0 0 ? -1 S< 0 0:02 [kworker/4:1H]
1 3045 3045 3045 ? -1 Ssl 999 0:00 /usr/lib/polkit-1/polkitd --no-debug
1 3072 3072 3072 ? -1 Ss 0 0:11 /usr/sbin/irqbalance --foreground
1 3098 3098 3098 ? -1 Ss 0 0:00 /usr/lib/systemd/systemd-logind
1 3100 3100 3100 ? -1 Ss 81 0:00 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation
1 3102 3102 3102 ? -1 Ssl 28 0:06 /usr/sbin/nscd
1 3177 3177 3177 ? -1 Ss 38 0:00 /usr/sbin/ntpd -u ntp:ntp -g
2 3213 0 0 ? -1 S< 0 0:00 [nfit]
1 3231 3231 3231 ? -1 Ssl 0 0:03 /usr/sbin/NetworkManager --no-daemon
1 3259 3259 3259 ? -1 Ss 0 0:00 /usr/sbin/crond -n
1 3374 3374 3374 tty1 3374 Ss+ 0 0:00 /sbin/agetty --noclear tty1 linux
1 3826 3224 3224 ? -1 Sl 0 1:03 /usr/local/share/jcloud/ifrit/sbin/ifrit-supervise
3826 3837 3224 3224 ? -1 Sl 0 6:16 /usr/local/share/jcloud/ifrit/sbin/ifrit-agent
3231 3866 3866 3231 ? -1 S 0 0:00 /sbin/dhclient -d -q -sf /usr/libexec/nm-dhcp-helper -pf /var/run/dhclient-eth0.pid -lf /var/lib/NetworkManager/dhclient-3a68ceee-2
2 3897 0 0 ? -1 S< 0 0:01 [kworker/6:1H]
1 4082 4082 4082 ? -1 Ss 0 0:02 /usr/sbin/sshd -D
1 4085 4085 4085 ? -1 Ssl 0 0:10 /usr/sbin/rsyslogd -n
1 4088 4088 4088 ? -1 Ssl 0 0:20 /usr/bin/python2 -Es /usr/sbin/tuned -l -P
1 4253 4252 4252 ? -1 Sl 27 19:22 /usr/sbin/mysqld --daemonize --pid-file=/var/run/mysqld/mysqld.pid
1 4273 4273 4273 ? -1 Ssl 0 9:11 /usr/local/share/jcloud/agent/core/JCSAgentCore >/dev/null 2>&1
2 4275 0 0 ? -1 S< 0 0:00 [kworker/5:1H]
2 4276 0 0 ? -1 S< 0 0:00 [kworker/7:1H]
2 4277 0 0 ? -1 S< 0 0:00 [kworker/3:1H]
1 4289 4287 4287 ? -1 S 0 0:58 python /usr/bin/denyhosts.py --daemon --config=/usr/share/denyhosts/denyhosts.cfg
2 4316 0 0 ? -1 S< 0 0:00 [kworker/1:1H]
1 4318 4318 4318 ? -1 Ss 0 0:08 /usr/local/share/jcloud/jdog-monitor/bin/jdog-watchdog
1 4341 4341 4341 ? -1 Ss 0 0:00 /usr/libexec/postfix/master -w
4341 4343 4341 4341 ? -1 S 89 0:00 qmgr -l -t unix -u
4318 4683 4318 4318 ? -1 Sl 0 2:33 /usr/local/share/jcloud/jdog-monitor/bin/jdog-monitor.1.1.0.4
4318 4740 4318 4318 ? -1 Sl 0 30:29 /usr/local/share/jcloud/jdog-monitor/deploy/kunlunmirror/1_9a9c4e047b4f1b16e8d7fb1ff3e69223/bin/jdog-kunlunmirror
4273 7656 7656 4273 ? -1 Sl 0 3:20 /usr/local/share/jcloud/agent/plugins/UpgradePlugin-1.0.736.e1d0167/UpgradePlugin -l unix:///usr/local/share/jcloud/agent/plugins/U
4273 7657 7657 4273 ? -1 Sl 0 7:59 /usr/local/share/jcloud/agent/plugins/MonitorPlugin-3.0.1042.d89c570/MonitorPlugin -l unix:///usr/local/share/jcloud/agent/plugins/
2 9204 0 0 ? -1 S 0 0:00 [kworker/0:0]
2 9872 0 0 ? -1 S 0 0:00 [kworker/5:0]
1 10316 10316 10316 ? -1 Ssl 0 0:01 /usr/bin/containerd
1 10331 10331 10331 ? -1 Ssl 0 0:03 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock
2 10594 0 0 ? -1 R 0 0:00 [kworker/6:2]
1 10618 10618 10316 ? -1 Sl 0 0:00 /usr/bin/containerd-shim-runc-v2 -namespace moby -id d9d4d9d8cbce9e936deb08c8ca29d10318e1eb86dc64441367e1748b5cfedbfa -address /run
10618 10639 10639 10639 pts/0 10639 Ss+ 0 0:00 /bin/bash
2 11179 0 0 ? -1 S 0 0:00 [kworker/2:0]
2 11206 0 0 ? -1 S 0 0:00 [kworker/5:1]
2 11379 0 0 ? -1 S 0 0:00 [kworker/u16:2]
325 11821 11821 325 pts/0 11821 Sl+ 0 0:00 docker exec -it d9d4d9d8cbce /bin/bash
10618 11840 11840 11840 pts/1 11840 Ss+ 0 0:00 /bin/bash
919 11929 11929 919 pts/1 11929 R+ 0 0:00 ps -ajx
2 15647 0 0 ? -1 S 0 0:00 [kworker/1:2]
2 26026 0 0 ? -1 S 0 0:00 [kworker/6:1]
2 26028 0 0 ? -1 S 0 0:00 [kworker/2:1]
2 26637 0 0 ? -1 S 0 0:00 [kworker/7:2]
2 26993 0 0 ? -1 S 0 0:00 [kworker/4:0]
2 26995 0 0 ? -1 S 0 0:00 [kworker/3:1]
[root@test-dbs ~]#
step3: 停止容器,然后查看系统进程;
停止该容器后,里面的所有进程 10639 11840 都退出了,这是不是可以辅助理解容器里的多进程
[root@test-dbs ~]# docker stop d9d4d9d8cbce -----停止该容器后,里面的所有进程 10639 11840 都退出了
d9d4d9d8cbce
[root@test-dbs ~]#
[root@test-dbs ~]# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
[root@test-dbs ~]#
[root@test-dbs ~]# ps -ajx
PPID PID PGID SID TTY TPGID STAT UID TIME COMMAND
0 1 1 1 ? -1 Ss 0 0:37 /usr/lib/systemd/systemd --switched-root --system --deserialize 22
0 2 0 0 ? -1 S 0 0:00 [kthreadd]
2 3 0 0 ? -1 S 0 0:00 [ksoftirqd/0]
2 5 0 0 ? -1 S< 0 0:00 [kworker/0:0H]
2 6 0 0 ? -1 S 0 0:02 [kworker/u16:0]
2 7 0 0 ? -1 S 0 0:00 [migration/0]
2 8 0 0 ? -1 S 0 0:00 [rcu_bh]
2 9 0 0 ? -1 S 0 0:40 [rcu_sched]
2 10 0 0 ? -1 S< 0 0:00 [lru-add-drain]
2 11 0 0 ? -1 S 0 0:00 [watchdog/0]
2 12 0 0 ? -1 S 0 0:00 [watchdog/1]
2 13 0 0 ? -1 S 0 0:01 [migration/1]
2 14 0 0 ? -1 S 0 0:00 [ksoftirqd/1]
2 16 0 0 ? -1 S< 0 0:00 [kworker/1:0H]
2 17 0 0 ? -1 S 0 0:00 [watchdog/2]
2 18 0 0 ? -1 S 0 0:00 [migration/2]
2 19 0 0 ? -1 S 0 0:00 [ksoftirqd/2]
2 21 0 0 ? -1 S< 0 0:00 [kworker/2:0H]
2 22 0 0 ? -1 S 0 0:00 [watchdog/3]
2 23 0 0 ? -1 S 0 0:01 [migration/3]
2 24 0 0 ? -1 S 0 0:00 [ksoftirqd/3]
2 25 0 0 ? -1 R 0 0:03 [kworker/3:0]
2 26 0 0 ? -1 S< 0 0:00 [kworker/3:0H]
2 27 0 0 ? -1 S 0 0:00 [watchdog/4]
2 28 0 0 ? -1 S 0 0:00 [migration/4]
2 29 0 0 ? -1 S 0 0:00 [ksoftirqd/4]
2 31 0 0 ? -1 S< 0 0:00 [kworker/4:0H]
2 32 0 0 ? -1 S 0 0:00 [watchdog/5]
2 33 0 0 ? -1 S 0 0:01 [migration/5]
2 34 0 0 ? -1 S 0 0:00 [ksoftirqd/5]
2 36 0 0 ? -1 S< 0 0:00 [kworker/5:0H]
2 37 0 0 ? -1 S 0 0:00 [watchdog/6]
2 38 0 0 ? -1 S 0 0:00 [migration/6]
2 39 0 0 ? -1 S 0 0:00 [ksoftirqd/6]
2 41 0 0 ? -1 S< 0 0:00 [kworker/6:0H]
2 42 0 0 ? -1 S 0 0:00 [watchdog/7]
2 43 0 0 ? -1 S 0 0:01 [migration/7]
2 44 0 0 ? -1 S 0 0:00 [ksoftirqd/7]
2 45 0 0 ? -1 S 0 0:19 [kworker/7:0]
2 46 0 0 ? -1 S< 0 0:00 [kworker/7:0H]
2 48 0 0 ? -1 S 0 0:00 [kdevtmpfs]
2 49 0 0 ? -1 S< 0 0:00 [netns]
2 50 0 0 ? -1 S 0 0:00 [khungtaskd]
2 51 0 0 ? -1 S< 0 0:00 [writeback]
2 52 0 0 ? -1 S< 0 0:00 [kintegrityd]
2 53 0 0 ? -1 S< 0 0:00 [bioset]
2 54 0 0 ? -1 S< 0 0:00 [bioset]
2 55 0 0 ? -1 S< 0 0:00 [bioset]
2 56 0 0 ? -1 S< 0 0:00 [kblockd]
2 57 0 0 ? -1 S< 0 0:00 [md]
2 58 0 0 ? -1 S< 0 0:00 [edac-poller]
2 59 0 0 ? -1 S< 0 0:00 [watchdogd]
2 60 0 0 ? -1 S 0 0:16 [kworker/0:1]
2 61 0 0 ? -1 S 0 0:03 [kworker/1:1]
2 66 0 0 ? -1 S 0 0:05 [kswapd0]
2 67 0 0 ? -1 SN 0 0:00 [ksmd]
2 68 0 0 ? -1 SN 0 0:02 [khugepaged]
2 69 0 0 ? -1 S< 0 0:00 [crypto]
2 77 0 0 ? -1 S< 0 0:00 [kthrotld]
2 79 0 0 ? -1 S< 0 0:00 [kmpath_rdacd]
2 80 0 0 ? -1 S< 0 0:00 [kaluad]
2 81 0 0 ? -1 S< 0 0:00 [kpsmoused]
2 82 0 0 ? -1 S< 0 0:00 [ipv6_addrconf]
2 95 0 0 ? -1 S< 0 0:00 [deferwq]
2 130 0 0 ? -1 S 0 0:23 [kauditd]
4082 322 322 322 ? -1 Ss 0 0:00 sshd: root@pts/0,pts/1
322 325 325 325 pts/0 325 Ss+ 0 0:00 -bash
2 514 0 0 ? -1 S 0 0:06 [kworker/4:2]
2 814 0 0 ? -1 S< 0 0:00 [ata_sff]
322 919 919 919 pts/1 12073 Ss 0 0:00 -bash
2 1663 0 0 ? -1 S 0 0:00 [scsi_eh_0]
2 1670 0 0 ? -1 S< 0 0:00 [scsi_tmf_0]
2 1683 0 0 ? -1 S 0 0:00 [scsi_eh_1]
2 1684 0 0 ? -1 S< 0 0:00 [scsi_tmf_1]
2 1690 0 0 ? -1 S< 0 0:00 [ttm_swap]
2 1765 0 0 ? -1 S< 0 0:09 [kworker/0:1H]
2 1875 0 0 ? -1 S< 0 0:00 [bioset]
2 1878 0 0 ? -1 S< 0 0:00 [xfsalloc]
2 1879 0 0 ? -1 S< 0 0:00 [xfs_mru_cache]
2 1886 0 0 ? -1 S< 0 0:00 [xfs-buf/vda1]
2 1887 0 0 ? -1 S< 0 0:00 [xfs-data/vda1]
2 1889 0 0 ? -1 S< 0 0:00 [xfs-conv/vda1]
2 1890 0 0 ? -1 S< 0 0:00 [xfs-cil/vda1]
2 1892 0 0 ? -1 S< 0 0:00 [xfs-reclaim/vda]
2 1893 0 0 ? -1 S< 0 0:00 [xfs-log/vda1]
2 1895 0 0 ? -1 S< 0 0:00 [xfs-eofblocks/v]
2 1901 0 0 ? -1 S 0 0:48 [xfsaild/vda1]
2 1902 0 0 ? -1 S< 0 0:01 [kworker/2:1H]
1 1970 1970 1970 ? -1 Ss 0 0:05 /usr/lib/systemd/systemd-journald
1 1999 1999 1999 ? -1 Ss 0 0:00 /usr/lib/systemd/systemd-udevd
4341 2812 4341 4341 ? -1 S 89 0:00 pickup -l -t unix -u
2 3023 0 0 ? -1 S< 0 0:02 [kworker/4:1H]
1 3045 3045 3045 ? -1 Ssl 999 0:00 /usr/lib/polkit-1/polkitd --no-debug
1 3072 3072 3072 ? -1 Ss 0 0:11 /usr/sbin/irqbalance --foreground
1 3098 3098 3098 ? -1 Ss 0 0:00 /usr/lib/systemd/systemd-logind
1 3100 3100 3100 ? -1 Ss 81 0:00 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation
1 3102 3102 3102 ? -1 Ssl 28 0:06 /usr/sbin/nscd
1 3177 3177 3177 ? -1 Ss 38 0:00 /usr/sbin/ntpd -u ntp:ntp -g
2 3213 0 0 ? -1 S< 0 0:00 [nfit]
1 3231 3231 3231 ? -1 Ssl 0 0:03 /usr/sbin/NetworkManager --no-daemon
1 3259 3259 3259 ? -1 Ss 0 0:00 /usr/sbin/crond -n
1 3374 3374 3374 tty1 3374 Ss+ 0 0:00 /sbin/agetty --noclear tty1 linux
1 3826 3224 3224 ? -1 Sl 0 1:03 /usr/local/share/jcloud/ifrit/sbin/ifrit-supervise
3826 3837 3224 3224 ? -1 Sl 0 6:16 /usr/local/share/jcloud/ifrit/sbin/ifrit-agent
3231 3866 3866 3231 ? -1 S 0 0:00 /sbin/dhclient -d -q -sf /usr/libexec/nm-dhcp-helper -pf /var/run/dhclient-eth0.pid -lf /var/lib/NetworkManager/dhclient-3a68ceee-2
2 3897 0 0 ? -1 S< 0 0:01 [kworker/6:1H]
1 4082 4082 4082 ? -1 Ss 0 0:02 /usr/sbin/sshd -D
1 4085 4085 4085 ? -1 Ssl 0 0:10 /usr/sbin/rsyslogd -n
1 4088 4088 4088 ? -1 Ssl 0 0:20 /usr/bin/python2 -Es /usr/sbin/tuned -l -P
1 4253 4252 4252 ? -1 Sl 27 19:22 /usr/sbin/mysqld --daemonize --pid-file=/var/run/mysqld/mysqld.pid
1 4273 4273 4273 ? -1 Ssl 0 9:11 /usr/local/share/jcloud/agent/core/JCSAgentCore >/dev/null 2>&1
2 4275 0 0 ? -1 S< 0 0:00 [kworker/5:1H]
2 4276 0 0 ? -1 S< 0 0:00 [kworker/7:1H]
2 4277 0 0 ? -1 S< 0 0:00 [kworker/3:1H]
1 4289 4287 4287 ? -1 S 0 0:58 python /usr/bin/denyhosts.py --daemon --config=/usr/share/denyhosts/denyhosts.cfg
2 4316 0 0 ? -1 S< 0 0:00 [kworker/1:1H]
1 4318 4318 4318 ? -1 Ss 0 0:08 /usr/local/share/jcloud/jdog-monitor/bin/jdog-watchdog
1 4341 4341 4341 ? -1 Ss 0 0:00 /usr/libexec/postfix/master -w
4341 4343 4341 4341 ? -1 S 89 0:00 qmgr -l -t unix -u
4318 4683 4318 4318 ? -1 Sl 0 2:33 /usr/local/share/jcloud/jdog-monitor/bin/jdog-monitor.1.1.0.4
4318 4740 4318 4318 ? -1 Sl 0 30:29 /usr/local/share/jcloud/jdog-monitor/deploy/kunlunmirror/1_9a9c4e047b4f1b16e8d7fb1ff3e69223/bin/jdog-kunlunmirror
4273 7656 7656 4273 ? -1 Sl 0 3:20 /usr/local/share/jcloud/agent/plugins/UpgradePlugin-1.0.736.e1d0167/UpgradePlugin -l unix:///usr/local/share/jcloud/agent/plugins/U
4273 7657 7657 4273 ? -1 Sl 0 7:59 /usr/local/share/jcloud/agent/plugins/MonitorPlugin-3.0.1042.d89c570/MonitorPlugin -l unix:///usr/local/share/jcloud/agent/plugins/
2 9204 0 0 ? -1 S 0 0:00 [kworker/0:0]
2 9872 0 0 ? -1 S 0 0:00 [kworker/5:0]
1 10316 10316 10316 ? -1 Ssl 0 0:01 /usr/bin/containerd
1 10331 10331 10331 ? -1 Ssl 0 0:03 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock
2 10594 0 0 ? -1 S 0 0:00 [kworker/6:2]
2 11179 0 0 ? -1 R 0 0:00 [kworker/2:0]
2 11206 0 0 ? -1 S 0 0:00 [kworker/5:1]
2 11379 0 0 ? -1 S 0 0:00 [kworker/u16:2]
2 11960 0 0 ? -1 S 0 0:00 [kworker/5:2]
2 12052 0 0 ? -1 S 0 0:00 [kworker/0:2]
2 12059 0 0 ? -1 S 0 0:00 [kworker/7:1]
919 12073 12073 919 pts/1 12073 R+ 0 0:00 ps -ajx
2 15647 0 0 ? -1 S 0 0:00 [kworker/1:2]
2 26026 0 0 ? -1 S 0 0:00 [kworker/6:1]
2 26028 0 0 ? -1 S 0 0:00 [kworker/2:1]
2 26637 0 0 ? -1 S 0 0:00 [kworker/7:2]
2 26993 0 0 ? -1 S 0 0:00 [kworker/4:0]
2 26995 0 0 ? -1 S 0 0:00 [kworker/3:1]
[root@test-dbs ~]#
扩展:
用命令 docker run 创建的容器就是 [进程/usr/bin/containerd] 创建的一个组长进程,(该组长进程的父进程可能是 init 进程(docker 版本20.10.10) 也可能是 /usr/bin/containerd 进程(docker 版本 18.09.9),这取决于 docker 的版本,全文搜索 containerd-shim 就清楚啦
[root@jdtdbavm ~]# docker version
Client:
Version: 18.09.9
API version: 1.39
Go version: go1.11.13
Git commit: 039a7df9ba
Built: Wed Sep 4 16:51:21 2019
OS/Arch: linux/amd64
Experimental: false
Server: Docker Engine - Community
Engine:
Version: 18.09.9
API version: 1.39 (minimum version 1.12)
Go version: go1.11.13
Git commit: 039a7df
Built: Wed Sep 4 16:22:32 2019
OS/Arch: linux/amd64
Experimental: false
[root@jdtdbavm ~]#
[root@jdtdbavm ~]# ps -ajx
PPID PID PGID SID TTY TPGID STAT UID TIME COMMAND
0 1 1 1 ? -1 Ss 0 44:20 /usr/lib/systemd/systemd --system --deserialize 17
0 2 0 0 ? -1 S 0 0:14 [kthreadd]
2 3 0 0 ? -1 S 0 4:33 [ksoftirqd/0]
2 5 0 0 ? -1 S< 0 0:00 [kworker/0:0H]
2 7 0 0 ? -1 S 0 0:23 [migration/0]
2 8 0 0 ? -1 S 0 0:00 [rcu_bh]
2 9 0 0 ? -1 S 0 169:47 [rcu_sched]
2 10 0 0 ? -1 S< 0 0:00 [lru-add-drain]
2 11 0 0 ? -1 S 0 0:58 [watchdog/0]
2 12 0 0 ? -1 S 0 0:41 [watchdog/1]
2 13 0 0 ? -1 S 0 2:19 [migration/1]
2 14 0 0 ? -1 S 0 2:00 [ksoftirqd/1]
2 16 0 0 ? -1 S< 0 0:00 [kworker/1:0H]
2 17 0 0 ? -1 S 0 0:49 [watchdog/2]
2 18 0 0 ? -1 S 0 0:22 [migration/2]
2 19 0 0 ? -1 S 0 3:46 [ksoftirqd/2]
2 21 0 0 ? -1 S< 0 0:00 [kworker/2:0H]
2 22 0 0 ? -1 S 0 0:41 [watchdog/3]
2 23 0 0 ? -1 S 0 2:22 [migration/3]
2 24 0 0 ? -1 S 0 1:06 [ksoftirqd/3]
2 26 0 0 ? -1 S< 0 0:00 [kworker/3:0H]
2 28 0 0 ? -1 S 0 0:00 [kdevtmpfs]
2 29 0 0 ? -1 S< 0 0:00 [netns]
2 30 0 0 ? -1 S 0 0:09 [khungtaskd]
2 31 0 0 ? -1 S< 0 0:00 [writeback]
2 32 0 0 ? -1 S< 0 0:00 [kintegrityd]
2 33 0 0 ? -1 S< 0 0:00 [bioset]
2 34 0 0 ? -1 S< 0 0:00 [bioset]
2 35 0 0 ? -1 S< 0 0:00 [bioset]
2 36 0 0 ? -1 S< 0 0:00 [kblockd]
2 37 0 0 ? -1 S< 0 0:00 [md]
2 38 0 0 ? -1 S< 0 0:00 [edac-poller]
2 39 0 0 ? -1 S< 0 0:00 [watchdogd]
2 46 0 0 ? -1 S 0 0:00 [kswapd0]
2 47 0 0 ? -1 SN 0 0:00 [ksmd]
2 48 0 0 ? -1 SN 0 0:33 [khugepaged]
2 49 0 0 ? -1 S< 0 0:00 [crypto]
2 57 0 0 ? -1 S< 0 0:00 [kthrotld]
2 59 0 0 ? -1 S< 0 0:00 [kmpath_rdacd]
2 60 0 0 ? -1 S< 0 0:00 [kaluad]
2 61 0 0 ? -1 S< 0 0:00 [kpsmoused]
2 62 0 0 ? -1 S< 0 0:00 [ipv6_addrconf]
2 75 0 0 ? -1 S< 0 0:00 [deferwq]
2 182 0 0 ? -1 S 0 18:10 [kauditd]
2 644 0 0 ? -1 S< 0 0:00 [ata_sff]
2 697 0 0 ? -1 S 0 0:00 [scsi_eh_0]
2 698 0 0 ? -1 S< 0 0:00 [scsi_tmf_0]
2 703 0 0 ? -1 S 0 0:00 [scsi_eh_1]
2 706 0 0 ? -1 S< 0 0:00 [scsi_tmf_1]
2 1022 0 0 ? -1 S< 0 0:00 [ttm_swap]
2 1296 0 0 ? -1 S< 0 0:58 [kworker/0:1H]
2 1407 0 0 ? -1 S< 0 0:00 [bioset]
2 1410 0 0 ? -1 S< 0 0:00 [xfsalloc]
2 1411 0 0 ? -1 S< 0 0:00 [xfs_mru_cache]
2 1415 0 0 ? -1 S< 0 0:00 [xfs-buf/vda3]
2 1416 0 0 ? -1 S< 0 0:00 [xfs-data/vda3]
2 1417 0 0 ? -1 S< 0 0:00 [xfs-conv/vda3]
2 1419 0 0 ? -1 S< 0 0:00 [xfs-cil/vda3]
2 1420 0 0 ? -1 S< 0 0:00 [xfs-reclaim/vda]
2 1425 0 0 ? -1 S< 0 0:00 [xfs-log/vda3]
2 1426 0 0 ? -1 S< 0 0:00 [xfs-eofblocks/v]
2 1433 0 0 ? -1 S 0 109:16 [xfsaild/vda3]
2 1434 0 0 ? -1 S< 0 0:37 [kworker/1:1H]
1 1502 1502 1502 ? -1 Ss 0 23:26 /usr/lib/systemd/systemd-journald
1 1516 1516 1516 ? -1 Ss 0 0:00 /usr/lib/systemd/systemd-udevd
2 2077 0 0 ? -1 S 0 0:01 [kworker/1:0]
2 2805 0 0 ? -1 S< 0 0:00 [nfit]
2 2813 0 0 ? -1 S 0 0:00 [kworker/3:0]
1 2853 2853 2853 ? -1 Ss 81 1:05 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation
1 2869 2869 2869 ? -1 Ssl 999 0:21 /usr/lib/polkit-1/polkitd --no-debug
1 2871 2871 2871 ? -1 Ss 0 15:43 /usr/sbin/irqbalance --foreground
1 2873 2873 2873 ? -1 Ss 0 0:41 /usr/lib/systemd/systemd-logind
1 2879 2879 2879 ? -1 Ssl 0 3:34 /usr/sbin/NetworkManager --no-daemon
1 2885 2885 2885 ? -1 Ss 0 0:22 /usr/sbin/crond -n
1 2928 2928 2928 tty1 2928 Ss+ 0 0:00 /sbin/agetty --noclear tty1 linux
1 2937 2937 2937 ? -1 Ssl 28 21:01 /usr/sbin/nscd
1 2949 2949 2949 ? -1 Ss 38 0:38 /usr/sbin/ntpd -u ntp:ntp -g
2879 3025 3025 2879 ? -1 S 0 0:00 /sbin/dhclient -d -q -sf /usr/libexec/nm-dhcp-helper -pf /var/run/dhclient-eth0.pid -lf /var/lib/NetworkManager/dhclient-3a68ceee-2
2 3052 0 0 ? -1 S< 0 0:00 [mlx4]
2 3069 0 0 ? -1 S< 0 1:24 [kworker/2:1H]
2 3072 0 0 ? -1 S< 0 0:00 [ib-comp-wq]
2 3073 0 0 ? -1 S< 0 0:00 [kworker/u9:0]
2 3074 0 0 ? -1 S< 0 0:00 [ib-comp-unb-wq]
2 3075 0 0 ? -1 S< 0 0:00 [ib_mcast]
2 3077 0 0 ? -1 S< 0 0:00 [ib_nl_sa_wq]
2 3087 0 0 ? -1 S< 0 0:00 [mlx4_ib]
2 3088 0 0 ? -1 S< 0 0:00 [mlx4_ib_mcg]
2 3188 0 0 ? -1 S< 0 0:00 [mlx5_ib_sigerr_]
2 3255 0 0 ? -1 S< 0 0:00 [rdma_cm]
1 3429 3429 3429 ? -1 Ssl 0 25:04 /usr/bin/python2 -Es /usr/sbin/tuned -l -P
1 3430 3430 3430 ? -1 Ss 0 11:43 /usr/sbin/sshd -D
1 3433 3433 3433 ? -1 Ssl 0 23:22 /usr/sbin/rsyslogd -n
2 3578 0 0 ? -1 S< 0 0:54 [kworker/3:1H]
1 3580 3579 3579 ? -1 R 0 2411:11 python /usr/bin/denyhosts.py --daemon --config=/usr/share/denyhosts/denyhosts.cfg
1 3589 3589 3589 ? -1 Ss 0 4:51 /usr/local/share/jcloud/jdog-monitor/bin/jdog-watchdog
1 4302 4295 4295 ? -1 Sl 0 48:04 /usr/local/share/jcloud/ifrit/sbin/ifrit-supervise
4302 4308 4295 4295 ? -1 Sl 0 382:41 /usr/local/share/jcloud/ifrit/sbin/ifrit-agent
1 4541 4541 4541 ? -1 Ssl 0 318:01 /usr/local/share/jcloud/agent/core/JCSAgentCore >/dev/null 2>&1
4541 5065 5065 4541 ? -1 Sl 0 103:37 /usr/local/share/jcloud/agent/plugins/UpgradePlugin-1.0.736.e1d0167/UpgradePlugin -l unix:///usr/local/share/jcloud/agent/plugins/U
4541 5066 5066 4541 ? -1 Sl 0 1244:40 /usr/local/share/jcloud/agent/plugins/MonitorPlugin-3.0.1092.b94f2ae/MonitorPlugin -l unix:///usr/local/share/jcloud/agent/plugins
2 5458 0 0 ? -1 S 0 0:00 [kworker/2:2]
2 7032 0 0 ? -1 S 0 0:00 [kworker/2:0]
2 8436 0 0 ? -1 S 0 0:02 [kworker/3:1]
1 8841 8841 8841 ? -1 Ss 0 0:00 /usr/sbin/lvmetad -f
2 10155 0 0 ? -1 S 0 0:00 [kworker/2:1]
26465 11082 11082 26465 pts/0 11082 R+ 0 0:00 ps -ajx
2 14764 0 0 ? -1 S 0 0:00 [kworker/u8:2]
1 14973 14973 14973 ? -1 Ssl 0 4262:17 /usr/bin/kubelet --bootstrap-kubeconfig=/etc/kubernetes/bootstrap-kubelet.conf --kubeconfig=/etc/kubernetes/kubelet.conf --config=
3589 15055 3589 3589 ? -1 Sl 0 284:50 /usr/local/share/jcloud/jdog-monitor/deploy/kunlunmirror/6_ed3226181cf6cfb106b2bfd41c9c450c/bin/jdog-kunlunmirror
22755 15072 15072 22755 ? -1 Sl 0 5:57 containerd-shim -namespace moby -workdir /var/lib/containerd/io.containerd.runtime.v1.linux/moby/913872391f26fb09e49c5e2df0b9f0366c
15072 15091 15091 15091 ? -1 Ss 0 0:00 /pause
22755 15180 15180 22755 ? -1 Sl 0 6:00 containerd-shim -namespace moby -workdir /var/lib/containerd/io.containerd.runtime.v1.linux/moby/3123e59ce32180656925e22cc65d0d80b1
15180 15199 15199 15199 ? -1 Ssl 0 83:10 /usr/local/bin/kube-proxy --config=/var/lib/kube-proxy/config.conf --hostname-override=jdtdbavm
3589 15740 3589 3589 ? -1 Sl 0 26:50 /usr/local/share/jcloud/jdog-monitor/bin/jdog-monitor.1.2.0.4
2 17213 0 0 ? -1 R 0 0:02 [kworker/0:1]
22755 18019 18019 22755 ? -1 Sl 0 5:53 containerd-shim -namespace moby -workdir /var/lib/containerd/io.containerd.runtime.v1.linux/moby/8f063998296be77535123bb98b12e61daf
18019 18038 18038 18038 ? -1 Ss 0 0:00 /pause
22755 18179 18179 22755 ? -1 Sl 0 5:50 containerd-shim -namespace moby -workdir /var/lib/containerd/io.containerd.runtime.v1.linux/moby/3e6076f763ee3755fd65f2e5676d523587
18179 18198 18198 18198 ? -1 Ssl 0 125:26 /opt/bin/flanneld --ip-masq --kube-subnet-mgr
22755 18349 18349 22755 ? -1 Sl 0 5:51 containerd-shim -namespace moby -workdir /var/lib/containerd/io.containerd.runtime.v1.linux/moby/63a49c3ecba6d3b8206b52c1b22ea9ba3d
22755 18366 18366 22755 ? -1 Sl 0 5:55 containerd-shim -namespace moby -workdir /var/lib/containerd/io.containerd.runtime.v1.linux/moby/3301deafc23199e078f39115274ed816c0
18349 18383 18383 18383 ? -1 Ss 0 0:00 /pause
18366 18397 18397 18397 ? -1 Ss 0 0:00 /pause
22755 18562 18562 22755 ? -1 Sl 0 6:04 containerd-shim -namespace moby -workdir /var/lib/containerd/io.containerd.runtime.v1.linux/moby/e5b0fb3f8daedeb1f0b6a7ae4c3431d43c
18562 18584 18584 18584 ? -1 Ssl 0 513:04 /coredns -conf /etc/coredns/Corefile
22755 18624 18624 22755 ? -1 Sl 0 5:48 containerd-shim -namespace moby -workdir /var/lib/containerd/io.containerd.runtime.v1.linux/moby/25943cf9e43d71f71baa58ae8140720c74
18624 18643 18643 18643 ? -1 Ssl 0 526:01 /coredns -conf /etc/coredns/Corefile
22755 19704 19704 22755 ? -1 Sl 0 6:00 containerd-shim -namespace moby -workdir /var/lib/containerd/io.containerd.runtime.v1.linux/moby/8c251890c44691e2a45d669297413be7db
22755 19719 19719 22755 ? -1 Sl 0 5:48 containerd-shim -namespace moby -workdir /var/lib/containerd/io.containerd.runtime.v1.linux/moby/34a92b266fa6193dc42de1a8f7f8c6961b
19704 19743 19743 19743 ? -1 Ss 0 0:00 /pause
19719 19752 19752 19752 ? -1 Ss 0 0:00 /pause
22755 19939 19939 22755 ? -1 Sl 0 5:47 containerd-shim -namespace moby -workdir /var/lib/containerd/io.containerd.runtime.v1.linux/moby/5c62de1a64ef900ceb864f84911c93be1c
19939 19961 19961 19961 ? -1 Ssl 0 0:31 /root/demo/hello-kubernetes-demo
22755 20014 20014 22755 ? -1 Sl 0 5:44 containerd-shim -namespace moby -workdir /var/lib/containerd/io.containerd.runtime.v1.linux/moby/5481d01896ba3244b09511fd162d7df59a
20014 20033 20033 20033 ? -1 Ssl 0 0:31 /root/demo/hello-kubernetes-demo
1 22755 22755 22755 ? -1 Ssl 0 592:51 /usr/bin/containerd
2 22921 0 0 ? -1 S 0 0:00 [kworker/1:2]
22755 25908 25908 22755 ? -1 Sl 0 4:33 containerd-shim -namespace moby -workdir /var/lib/containerd/io.containerd.runtime.v1.linux/moby/9b2cce786ec8828a5d64dd4a17377894e3
25908 25929 25929 25929 ? -1 Ss 0 0:00 /pause
22755 26072 26072 22755 ? -1 Sl 0 5:03 containerd-shim -namespace moby -workdir /var/lib/containerd/io.containerd.runtime.v1.linux/moby/08c4802ec17e0dfcf70e92845521dfcb54
26072 26091 26091 26091 ? -1 Ssl 65534 25:58 /tiller
3430 26463 26463 26463 ? -1 Ds 0 0:00 sshd: root@pts/0
26463 26465 26465 26465 pts/0 11082 Ss 0 0:00 -bash
1 27595 27595 27595 ? -1 Ssl 0 1778:05 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock
2 27853 0 0 ? -1 S 0 0:01 [kworker/u8:0]
2 30381 0 0 ? -1 S 0 0:00 [kworker/0:2]
22755 32339 32339 22755 ? -1 Sl 0 5:28 containerd-shim -namespace moby -workdir /var/lib/containerd/io.containerd.runtime.v1.linux/moby/6171052c71285a189561be05f9d491554e
32339 32360 32360 32360 ? -1 Ss 0 0:00 /pause
22755 32554 32554 22755 ? -1 Sl 0 5:54 containerd-shim -namespace moby -workdir /var/lib/containerd/io.containerd.runtime.v1.linux/moby/527e03d861bb53e91f7ebf169797f25e19
32554 32573 32573 32573 ? -1 Ssl 999 229:16 redis-server *:6379
[root@jdtdbavm ~]#