xcat2 / xcat-docker

Repository to build Docker image for xCAT
5 stars 5 forks source link

Initial for xcat docker image with systemd support #1

Closed robin2008 closed 5 years ago

robin2008 commented 5 years ago

[root@mid05tor12cn03 xcat-docker]# docker exec -it xcatmn /bin/bash [root@xcatmn /]# ps -ef --forest UID PID PPID C STIME TTY TIME CMD root 2219 0 0 10:34 ? 00:00:00 /bin/bash root 2235 2219 0 10:34 ? 00:00:00 _ ps -ef --forest root 1 0 0 10:33 ? 00:00:00 /sbin/init root 22 1 0 10:33 ? 00:00:00 /usr/lib/systemd/systemd-journald root 32 1 0 10:33 ? 00:00:00 /usr/sbin/rpc.idmapd root 55 1 0 10:33 ? 00:00:00 /usr/sbin/rsyslogd -n root 88 1 0 10:33 ? 00:00:00 /usr/sbin/rpc.mountd root 95 1 0 10:33 ? 00:00:00 /usr/sbin/gssproxy -D named 102 1 0 10:33 ? 00:00:00 /usr/sbin/named -u named -c /etc/named.conf root 411 1 0 10:33 ? 00:00:00 /usr/sbin/httpd -DFOREGROUND apache 500 411 0 10:33 ? 00:00:00 _ /usr/sbin/httpd -DFOREGROUND apache 502 411 0 10:33 ? 00:00:00 _ /usr/sbin/httpd -DFOREGROUND apache 503 411 0 10:33 ? 00:00:00 _ /usr/sbin/httpd -DFOREGROUND apache 505 411 0 10:33 ? 00:00:00 _ /usr/sbin/httpd -DFOREGROUND apache 507 411 0 10:33 ? 00:00:00 _ /usr/sbin/httpd -DFOREGROUND root 2143 1 0 10:34 ? 00:00:00 /usr/sbin/in.tftpd -v -l -s /tftpboot -m /etc/tftpmapfile4xcat.conf root 2144 1 0 10:34 ? 00:00:00 xcatd: SSL listener root 2145 2144 0 10:34 ? 00:00:00 _ xcatd: DB Access root 2146 2144 0 10:34 ? 00:00:00 _ xcatd: UDP listener root 2148 2146 0 10:34 ? 00:00:00 | _ xcatd: Discovery worker root 2147 2144 0 10:34 ? 00:00:00 _ xcatd: install monitor root 2149 2144 0 10:34 ? 00:00:00 _ xcatd: Command log writer

- ubuntu

docker run -d --name xcatmn --network=host --hostname xcatmn --privileged -v /sys/fs/cgroup:/sys/fs/cgroup:ro xcat-xenial 0806bff138aa674322ff857aa986b345bef22cd8ccd3da4738933a5e69e93b20 [root@mid05tor12cn03 xcat-docker]# docker exec -it xcatmn /bin/bash root@xcatmn:/# ps -ef --forest UID PID PPID C STIME TTY TIME CMD root 442 0 0 10:36 ? 00:00:00 /bin/bash root 452 442 0 10:36 ? 00:00:00 _ ps -ef --forest root 1 0 0 10:36 ? 00:00:00 /sbin/init root 19 1 0 10:36 ? 00:00:00 /lib/systemd/systemd-journald root 36 1 0 10:36 ? 00:00:00 /usr/sbin/rpc.idmapd root 64 1 0 10:36 ? 00:00:00 /usr/sbin/cron -f message+ 65 1 0 10:36 ? 00:00:00 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation syslog 71 1 0 10:36 ? 00:00:00 /usr/sbin/rsyslogd -n daemon 74 1 0 10:36 ? 00:00:00 /usr/sbin/atd -f bind 78 1 0 10:36 ? 00:00:00 /usr/sbin/named -f -u bind root 225 1 2 10:36 ? 00:00:00 /bin/sh /etc/init.d/ondemand background root 387 225 0 10:36 ? 00:00:00 _ sleep 60 root 296 1 0 10:36 ? 00:00:00 /sbin/rpcbind -f -w root 306 1 0 10:36 ? 00:00:00 /usr/sbin/rpc.mountd --manage-gids root 314 1 0 10:36 ? 00:00:00 /usr/sbin/apache2 -k start www-data 317 314 0 10:36 ? 00:00:00 _ /usr/sbin/apache2 -k start www-data 318 314 0 10:36 ? 00:00:00 _ /usr/sbin/apache2 -k start root 388 1 0 10:36 ? 00:00:00 /usr/sbin/xinetd -pidfile /run/xinetd.pid -stayalive -inetd_compat -inetdipv6 root 416 1 0 10:36 ? 00:00:00 /usr/sbin/in.tftpd -v -l -s /tftpboot -m /etc/tftpmapfile4xcat.conf root 431 1 0 10:36 ? 00:00:00 xcatd: SSL listener root 432 431 0 10:36 ? 00:00:00 _ xcatd: DB Access root 433 431 0 10:36 ? 00:00:00 _ xcatd: UDP listener root 435 433 0 10:36 ? 00:00:00 | _ xcatd: Discovery worker root 434 431 0 10:36 ? 00:00:00 _ xcatd: install monitor root 436 431 0 10:36 ? 00:00:00 \ xcatd: Command log writer