Docker Community Forums

Share and learn in the Docker community.

Docker cgroup state degraded

Trying to get Cloudforms docker container working on CentOS in Azure.
When I start the container and take a look inside I see:

[root@cf2e7551e13f log]# systemctl status
● cf2e7551e13f
State: degraded
Jobs: 0 queued
Failed: 1 units
Since: Mon 2017-02-13 18:45:41 UTC; 4min 27s ago
CGroup: /system.slice/docker-cf2e7551e13fbf7843d16e01e08b091cdc64a94c8a46d928
2289e441ed164961.scope
├─ 1 /usr/sbin/init
├─ 323 bash
├─2040 bash
├─2081 systemctl status
├─2082 more
└─system.slice
├─memcached.service
│ └─1806 /usr/bin/memcached -u memcached -p 11211 -m 64 -c 1024 -l
127.0.0.1 -I 1
├─evm-watchdog.service
│ ├─406 /bin/bash /bin/evm_watchdog
│ └─413 ruby /bin/evm_watchdog.rb
├─evmserverd.service
│ ├─ 403 MIQ Server

         │ ├─1833 MIQ: MiqGenericWorker id: 1, queue: generic

         │ ├─1842 MIQ: MiqGenericWorker id: 2, queue: generic

         │ ├─1851 MIQ: MiqPriorityWorker id: 3, queue: generic

         │ ├─1860 MIQ: MiqPriorityWorker id: 4, queue: generic

         │ ├─1869 MIQ: MiqScheduleWorker id: 5

         │ ├─1890 MIQ: MiqEventHandler id: 6, queue: ems

         │ ├─1899 MIQ: MiqReportingWorker id: 7, queue: reporting

         │ ├─1907 MIQ: MiqReportingWorker id: 8, queue: reporting

         │ ├─1917 puma 3.3.0 (tcp://127.0.0.1:5000) [MIQ: Web Server Worker]

         │ ├─1950 puma 3.3.0 (tcp://127.0.0.1:3000) [MIQ: Web Server Worker]

         │ └─1964 puma 3.3.0 (tcp://127.0.0.1:4000) [MIQ: Web Server Worker]

         ├─rh-postgresql95-postgresql.service
         │ ├─ 294 /opt/rh/rh-postgresql95/root/usr/bin/postgres -D /var/opt/

rh/rh-postgresql95/lib/pgsql/data
│ ├─ 295 postgres: logger process

         │ ├─ 297 postgres: checkpointer process

         │ ├─ 298 postgres: writer process

         │ ├─ 299 postgres: wal writer process

         │ ├─ 300 postgres: autovacuum launcher process

         │ ├─ 301 postgres: stats collector process

         │ ├─ 302 postgres: bgworker: pglogical supervisor

         │ ├─ 425 postgres: root vmdb_production [local] idle

         │ ├─1841 postgres: root vmdb_production [local] idle

         │ ├─1850 postgres: root vmdb_production [local] idle

         │ ├─1859 postgres: root vmdb_production [local] idle

         │ ├─1868 postgres: root vmdb_production [local] idle

         │ ├─1877 postgres: root vmdb_production [local] idle

         │ ├─1898 postgres: root vmdb_production [local] idle

         │ ├─1911 postgres: root vmdb_production [local] idle

         │ ├─1916 postgres: root vmdb_production [local] idle

         │ ├─1925 postgres: root vmdb_production [local] idle

         │ ├─1939 postgres: root vmdb_production [local] idle

         │ ├─1959 postgres: root vmdb_production [local] idle

         │ ├─1973 postgres: root vmdb_production [local] idle

         │ ├─1979 postgres: root vmdb_production [local] idle

         │ └─1991 postgres: root vmdb_production [local] idle

         ├─systemd-logind.service
         │ └─181 /usr/lib/systemd/systemd-logind
         ├─dbus.service
         │ └─180 /bin/dbus-daemon --system --address=systemd: --nofork --nop

idfile --systemd-activation
├─miqvmstat.service
│ └─47 vmstat -a -n 60
├─miqtop.service
│ └─46 top -b -d 60
└─systemd-journald.service
└─17 /usr/lib/systemd/systemd-journald

[sysadmin@cloudforms-web ~]$ docker info
Cannot connect to the Docker daemon. Is the docker daemon running on this host?
[sysadmin@cloudforms-web ~]$ sudo docker info
Containers: 7
Running: 1
Paused: 0
Stopped: 6
Images: 1
Server Version: 1.12.5
Storage Driver: devicemapper
Pool Name: docker-8:2-1210-pool
Pool Blocksize: 65.54 kB
Base Device Size: 10.74 GB
Backing Filesystem: xfs
Data file: /dev/loop0
Metadata file: /dev/loop1
Data Space Used: 1.279 GB
Data Space Total: 107.4 GB
Data Space Available: 28.5 GB
Metadata Space Used: 2.298 MB
Metadata Space Total: 2.147 GB
Metadata Space Available: 2.145 GB
Thin Pool Minimum Free Space: 10.74 GB
Udev Sync Supported: true
Deferred Removal Enabled: false
Deferred Deletion Enabled: false
Deferred Deleted Device Count: 0
Data loop file: /var/lib/docker/devicemapper/devicemapper/data
WARNING: Usage of loopback devices is strongly discouraged for production use. Use --storage-opt dm.thinpooldev to specify a custom block storage device.
Metadata loop file: /var/lib/docker/devicemapper/devicemapper/metadata
Library Version: 1.02.135-RHEL7 (2016-11-16)
Logging Driver: journald
Cgroup Driver: systemd
Plugins:
Volume: local
Network: host bridge null overlay
Swarm: inactive
Runtimes: docker-runc runc
Default Runtime: docker-runc
Security Options: seccomp selinux
Kernel Version: 3.10.0-514.6.1.el7.x86_64
Operating System: CentOS Linux 7 (Core)
OSType: linux
Architecture: x86_64
Number of Docker Hooks: 2
CPUs: 2
Total Memory: 6.805 GiB
Name: cloudforms-web
ID: XSPK:V3BD:XSQW:LQQK:CFEL:GE7M:L46A:OTSO:35N4:3EE5:BYEB:7R7C
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://registry.access.redhat.com/v1/
Insecure Registries:
127.0.0.0/8
Registries: registry.access.redhat.com (secure), docker.io (secure)
[sysadmin@cloudforms-web ~]$

sudo docker run -d -p 80:80 -p 443:443 cloudforms/cfme4:latest

When I try to browse to the public IP of the CentOS box in Azure on port 443 or 80 I get “Connection refused”. Azure Network Security Groups are set on inbound for port 80 and 443.

Top output from container:
miqtop: start: date time is-> Mon Feb 13 18:45:46 UTC 2017 +0000
top - 18:45:48 up 4 min, 0 users, load average: 1.02, 0.36, 0.14
Tasks: 8 total, 1 running, 7 sleeping, 0 stopped, 0 zombie
%Cpu(s): 0.8 us, 1.2 sy, 0.0 ni, 85.2 id, 12.7 wa, 0.0 hi, 0.1 si, 0.0 st
KiB Mem : 7135564 total, 6551760 free, 226280 used, 357524 buff/cache
KiB Swap: 0 total, 0 free, 0 used. 6625096 avail Mem

PID PPID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
1 0 root 20 0 42800 2788 2036 S 0.0 0.0 0:00.07 /usr/sbin/init
17 1 root 20 0 36820 5112 4844 S 0.0 0.1 0:00.01 /usr/lib/systemd/systemd-journald
20 1 memcach+ 20 0 325556 1180 828 S 0.0 0.0 0:00.00 /usr/bin/memcached -u memcached -p 11211 -m 64 -c 1024
22 1 root 20 0 13628 1996 1384 S 0.0 0.0 0:00.00 /bin/bash /etc/rc.d/init.d/network start
46 1 root 20 0 53356 1996 1560 R 0.0 0.0 0:00.00 top -b -d 60
47 1 root 20 0 46292 1380 1068 S 0.0 0.0 0:00.00 vmstat -a -n 60
54 1 root 20 0 13228 1484 1276 D 0.0 0.0 0:00.00 /bin/s

The image first need to install postgre and unpack/install the db. This will take some time. The container is known for Memory eater on normal VM. The container is running on a CentOS VM with 14Gb and 4 CPU.

Please advise on how to further troubleshoot this container image so that I can use it.