Bluemix Container关闭问题

时间:2016-11-14 11:14:46

标签: docker containers ibm-cloud

我正在尝试使用容器来部署基于Fortran的代码。我已成功为Fortran环境创建了一个映像存储库。但是,当我尝试使用容器时,容器无法启动。它会不断建立,并在超时后永不停止。

我在网上检查了解决方案,有人认为这是因为尺寸问题而发生的。但是,我甚至尝试分配2 GB内存(在我的情况下最大允许),但仍然无法使容器正常工作。

有人可以为此提出解决方案吗?

The result for cf ic inspect

[
    {
        "BluemixApp": null,
        "BluemixServices": null,
        "Config": {
            "AttachStderr": false,
            "AttachStdin": false,
            "AttachStdout": false,
            "Cmd": [],
            "Dns": "",
            "Env": [
                "logging_password=",
                "space_id=09b438a1-16ea-4e78-9229-6c8ff48522bd",
                "logstash_target=logmet.opvis.bluemix.net:9091",
                "metrics_target=logmet.opvis.bluemix.net:9095"
            ],
            "Hostname": "instance-01024a2b",
            "Image": "registry.ng.bluemix.net/legacycontainer/madeline-chat:latest",
            "ImageArchitecture": "amd64",
            "Labels": {
                "doc.url": "/docs/images/docker_image_ibmnode/ibmnode_starter.html"
            },
            "Memory": 1024,
            "MemorySwap": "",
            "OpenStdin": true,
            "PortSpecs": "",
            "StdinOnce": false,
            "Tty": true,
            "User": "",
            "VCPU": 1,
            "VolumesFrom": "",
            "WorkingDir": ""
        },
        "ContainerState": "Networking",
        "Created": "2016-11-15T05:15:14.000000000Z",
        "Group": {},
        "HostConfig": {
            "Binds": [],
            "CapAdd": [],
            "CapDrop": [],
            "ContainerIDFile": "",
            "Links": [],
            "LogConfig": {
                "Config": {},
                "Type": "json-file"
            },
            "LxcConf": [],
            "PortBindings": {
                "80/tcp": [
                    {
                        "HostPort": "80"
                    }
                ]
            },
            "Privileged": false,
            "PublishAllPorts": false
        },
        "HostId": "",
        "Human_id": "fortcontainer",
        "Id": "5c3e7369-15f2-4c4c-a032-c7eaafe51057",
        "Image": "sha256:64b79347416c1909ecaf24276c2b37a093c017f03986bd928ce7af29f6e4362e",
        "Mounts": [],
        "Name": "fortcontainer",
        "NetworkSettings": {
            "Bridge": "",
            "Gateway": "",
            "IPAddress": "172.31.0.14",
            "IPPrefixLen": 0,
            "MacAddress": "fa:16:3e:c3:62:6d",
            "Networks": {
                "default": {
                    "Aliases": null,
                    "EndpointID": "5c3e7369-15f2-4c4c-a032-c7eaafe51057",
                    "Gateway": "172.31.0.1",
                    "GlobalIPv6Address": "",
                    "GlobalIPv6PrefixLen": 0,
                    "IPAMConfig": null,
                    "IPAddress": "172.31.0.14",
                    "IPPrefixLen": 16,
                    "IPv6Gateway": "",
                    "Links": null,
                    "MacAddress": "fa:16:3e:c3:62:6d",
                    "NetworkID": "01f0a8a5-782c-40c3-a9c9-6fb1f2b338ab"
                }
            },
            "PortMapping": null,
            "Ports": {
                "80/tcp": [
                    {
                        "HostIp": "169.44.117.254",
                        "HostPort": "80"
                    }
                ]
            },
            "PublicIpAddress": "169.44.117.254"
        },
        "Path": "date",
        "ResolvConfPath": "/etc/resolv.conf",
        "State": {
            "Error": "Unable to start container",
            "ExitCode": -1,
            "Fault": {
                "code": 500,
                "created": "2016-11-15T05:16:17Z",
                "message": "Exceeded maximum number of retries. Exceeded max scheduling attempts 3 for instance 5c3e7369-15f2-4c4c-a032-c7eaafe51057. Last exception: [u'Traceback (most recent call last):\\n', u'  File \"/opt/bbc/openstack-12.1.90/nova/local/lib/python2.7/site-packages"
            },
            "FinishedAt": "2016-11-15T05:16:17.000000000Z",
            "Ghost": "",
            "Pid": 1,
            "Running": false,
            "StartedAt": "2016-11-15T05:15:14.000000000Z",
            "Status": "Networking"
        },
        "Volumes": {},
        "VolumesRW": {}
    }
]

1 个答案:

答案 0 :(得分:1)

您应该能够通过cf ic logs(如果容器正在运行,只是没有激活)或cf ic inspect(如果容器没有获得)获得有关容器的一些其他信息这远远不够。其中任何一个都显示有关这里可能发生的事情的进一步信息吗?