Skip to content

Container started with upstart init wont show anything in docker top #2277

@kiorky

Description

@kiorky

Im trying to run upstart, now the vm boots and is playable, but docker top return anything while there are proceeses in the loop:

docker top 535c7ada817b
PID                 TTY                 TIME                CMD
root@535c7ada817b:/var/log/upstart# ps aux
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         1  0.2  0.0  24092  1980 ?        Ss   22:34   0:00 /sbin/init
root        46  0.0  0.0  49952  2876 ?        Ss   22:34   0:00 /usr/sbin/sshd -D
syslog      58  0.0  0.0 183928  1476 ?        Sl   22:34   0:00 rsyslogd -c5
root       107  0.0  0.0  19108   884 ?        Ss   22:34   0:00 cron
daemon     108  0.0  0.0  16904   372 ?        Ss   22:34   0:00 atd
root       115  0.0  0.0  15976   692 ?        Ss   22:34   0:00 /usr/sbin/irqbalance
snmp       121  0.0  0.0  48572  4940 ?        S    22:34   0:00 /usr/sbin/snmpd -Lsd -Lf /dev/null -u snmp -g snmp -I -smux -p /va
106        123  0.0  0.0  25968  1012 ?        S    22:34   0:00 dnsmasq -u lxc-dnsmasq --strict-order --bind-interfaces --pid-file
root       138  0.0  0.0  23108  1496 ?        Ss   22:34   0:00 /usr/sbin/ntpd -p /var/run/ntpd.pid -g -u 101:102
root       162  0.0  0.0  12748   864 tty1     Ss+  22:34   0:00 /sbin/getty -8 38400 tty1
root       163  0.0  0.0  77484  3596 ?        Ss   22:34   0:00 sshd: ubuntu [priv]
ubuntu     180  0.0  0.0  77484  1732 ?        R    22:34   0:00 sshd: ubuntu@pts/1
ubuntu     181  1.1  0.1  27044  8104 pts/1    Ss   22:34   0:00 -bash
root       211  0.0  0.0  41280  1904 pts/1    S    22:34   0:00 sudo su
root       212  0.0  0.0  44948  1424 pts/1    S    22:34   0:00 su
root       213  0.0  0.0  21024  2232 pts/1    S    22:34   0:00 bash
root       234  0.0  0.0  12748   908 ?        Ss   22:35   0:00 /sbin/getty -8 38400 /dev/console
root       236  0.0  0.0  18176  1264 pts/1    R+   22:35   0:00 ps aux
root@judith:~# docker inspect 535c7ada817b
[{
    "ID": "535c7ada817bd8e2d75b5e0c597ebccf310f6e76ca2e0c5b814d51d77bbf688c",
    "Created": "2013-10-18T00:34:18.861175573+02:00",
    "Path": "/sbin/init",
    "Args": [],
    "Config": {
        "Hostname": "535c7ada817b",
        "Domainname": "",
        "User": "",
        "Memory": 0,
        "MemorySwap": 0,
        "CpuShares": 0,
        "AttachStdin": false,
        "AttachStdout": false,
        "AttachStderr": false,
        "PortSpecs": null,
        "Tty": false,
        "OpenStdin": false,
        "StdinOnce": false,
        "Env": null,
        "Cmd": [
            "/sbin/init"
        ],
        "Dns": [
            "8.8.8.8",
            "8.8.4.4"
        ],
        "Image": "makinacorpus/upstart",
        "Volumes": null,
        "VolumesFrom": "",
        "WorkingDir": "",
        "Entrypoint": null,
        "NetworkDisabled": false,
        "Privileged": false
    },
    "State": {
        "Running": true,
        "Pid": 11645,
        "ExitCode": 0,
        "StartedAt": "2013-10-18T00:34:18.867939424+02:00",
        "FinishedAt": "0001-01-01T00:00:00Z",
        "Ghost": false
    },
    "Image": "60654abd259819aa516ffc4486e94ab613ba52b445b729246ea533d81019ee95",
    "NetworkSettings": {
        "IPAddress": "172.17.0.4",
        "IPPrefixLen": 16,
        "Gateway": "172.17.42.1",
        "Bridge": "docker0",
        "PortMapping": {
            "Tcp": {},
            "Udp": {}
        }
    },
    "SysInitPath": "/usr/bin/docker",
    "ResolvConfPath": "/var/lib/docker/containers/535c7ada817bd8e2d75b5e0c597ebccf310f6e76ca2e0c5b814d51d77bbf688c/resolv.conf",
    "HostnamePath": "/var/lib/docker/containers/535c7ada817bd8e2d75b5e0c597ebccf310f6e76ca2e0c5b814d51d77bbf688c/hostname",
    "HostsPath": "/var/lib/docker/containers/535c7ada817bd8e2d75b5e0c597ebccf310f6e76ca2e0c5b814d51d77bbf688c/hosts",
    "Volumes": {},
    "VolumesRW": {}

related to #2276

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions