在Windows上运行Docker Cloud Node

时间:2017-01-21 01:39:11

标签: linux windows ubuntu docker

我只是想知道是否有人成功地在Windows上运行Docker容器或在Ubuntu上的Bash上运行Docker Cloud节点。我目前正在使用DockerToolbox,如果这会改变它的实现。最后,Windows防火墙目前已关闭。

我尝试了什么?

  1. 运行Ubuntu最新映像,apt-get update-ing,apt-get install curl,然后运行单击“Build your own node”提供的命令。

    来自Docker Cloud的回应:

    Bringing your node to Docker Cloud...
    Agent contacted! Checking whether docker has started in node...
    Waiting for docker port to be open...
    Waiting for docker port to be open...
    Waiting for docker port to be open...
    Waiting for docker port to be open...
    Waiting for docker port to be open...
    Waiting for docker port to be open...
    Waiting for docker port to be open...
    Waiting for docker port to be open...
    Waiting for docker port to be open...
    Waiting for docker port to be open...
    Waiting for docker port to be open...
    Waiting for docker port to be open...
    Waiting for docker port to be open...
    Waiting for docker port to be open...
    Waiting for docker port to be open...
    Docker port is open!
    Waiting for docker server to be up...
    Waiting for docker server to be up...
    Waiting for docker server to be up...
    Waiting for docker server to be up...
    Waiting for docker server to be up...
    Waiting for docker server to be up...
    Waiting for docker server to be up...
    Waiting for docker server to be up...
    Waiting for docker server to be up...
    Waiting for docker server to be up...
    Waiting for docker server to be up...
    Waiting for docker server to be up...
    Waiting for docker server to be up...
    Waiting for docker server to be up...
    Instance has been removed from Docker Cloud
    PLEASE NOTE: we have not shut down the underlying host as it was not created by Docker Cloud
    ERROR: Unable to connect to the Docker daemon in 77a63d7a-357d-4809-b864-07b0f77a05cc.node.dockerapp.io. Please try to restart the Docker Cloud agent and contact support if the problem persists.
    Reallocating containers in other nodes...
    Reallocation done! 

    安装日志:

  2. -> Adding Docker Cloud's GPG key...
      gpg: directory `/root/.gnupg' created
    gpg: new configuration file `/root/.gnupg/gpg.conf' created
    gpg: WARNING: options in `/root/.gnupg/gpg.conf' are not yet active during this run
    gpg: keyring `/root/.gnupg/secring.gpg' created
    gpg: keyring `/root/.gnupg/pubring.gpg' created
    gpg: /root/.gnupg/trustdb.gpg: trustdb created
    gpg: key EF170D1C: public key "Tutum Inc. (tutum) " imported
    gpg: Total number processed: 1
    gpg:               imported: 1  (RSA: 1)
    OK
    -> Installing required dependencies...
    Reading package lists...
    Building dependency tree...
    Reading state information...
    E: Unable to locate package linux-image-extra-4.4.41-boot2docker
    E: Couldn't find any package by regex 'linux-image-extra-4.4.41-boot2docker'
    !! Failed to install linux-image-extra package. AUFS support (which is recommended) may not be available.
    -> Installing dockercloud-agent...
    Reading package lists...
    Building dependency tree...
    Reading state information...
    The following extra packages will be installed:
      aufs-tools cgroup-lite iptables libapparmor1 libnfnetlink0 libxtables10
      xz-utils
    The following NEW packages will be installed:
      aufs-tools cgroup-lite dockercloud-agent iptables libapparmor1 libnfnetlink0
      libxtables10 xz-utils
    0 upgraded, 8 newly installed, 0 to remove and 9 not upgraded.
    Need to get 3290 kB of archives.
    After this operation, 12.0 MB of additional disk space will be used.
    Get:1 http://repo.cloud.docker.com/ubuntu/ dockercloud/main dockercloud-agent amd64 1.1.0 [2780 kB]
    Get:2 http://archive.ubuntu.com/ubuntu/ trusty/main libnfnetlink0 amd64 1.0.1-2 [15.0 kB]
    Get:3 http://archive.ubuntu.com/ubuntu/ trusty/main libxtables10 amd64 1.4.21-1ubuntu1 [25.9 kB]
    Get:4 http://archive.ubuntu.com/ubuntu/ trusty/main iptables amd64 1.4.21-1ubuntu1 [261 kB]
    Get:5 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libapparmor1 amd64 2.10.95-0ubuntu2.5~14.04.1 [33.2 kB]
    Get:6 http://archive.ubuntu.com/ubuntu/ trusty/universe aufs-tools amd64 1:3.2+20130722-1.1 [92.3 kB]
    Get:7 http://archive.ubuntu.com/ubuntu/ trusty/main xz-utils amd64 5.1.1alpha+20120614-2ubuntu2 [78.8 kB]
    Get:8 http://archive.ubuntu.com/ubuntu/ trusty/main cgroup-lite all 1.9 [3918 B]
    Fetched 3290 kB in 2s (1634 kB/s)
    Selecting previously unselected package libnfnetlink0:amd64.
    (Reading database ... 12037 files and directories currently installed.)
    Preparing to unpack .../libnfnetlink0_1.0.1-2_amd64.deb ...
    Unpacking libnfnetlink0:amd64 (1.0.1-2) ...
    Selecting previously unselected package libxtables10.
    Preparing to unpack .../libxtables10_1.4.21-1ubuntu1_amd64.deb ...
    Unpacking libxtables10 (1.4.21-1ubuntu1) ...
    Selecting previously unselected package iptables.
    Preparing to unpack .../iptables_1.4.21-1ubuntu1_amd64.deb ...
    Unpacking iptables (1.4.21-1ubuntu1) ...
    Selecting previously unselected package libapparmor1:amd64.
    Preparing to unpack .../libapparmor1_2.10.95-0ubuntu2.5~14.04.1_amd64.deb ...
    Unpacking libapparmor1:amd64 (2.10.95-0ubuntu2.5~14.04.1) ...
    Selecting previously unselected package aufs-tools.
    Preparing to unpack .../aufs-tools_1%3a3.2+20130722-1.1_amd64.deb ...
    Unpacking aufs-tools (1:3.2+20130722-1.1) ...
    Selecting previously unselected package xz-utils.
    Preparing to unpack .../xz-utils_5.1.1alpha+20120614-2ubuntu2_amd64.deb ...
    Unpacking xz-utils (5.1.1alpha+20120614-2ubuntu2) ...
    Selecting previously unselected package cgroup-lite.
    Preparing to unpack .../cgroup-lite_1.9_all.deb ...
    Unpacking cgroup-lite (1.9) ...
    Selecting previously unselected package dockercloud-agent.
    Preparing to unpack .../dockercloud-agent_1.1.0_amd64.deb ...
    Unpacking dockercloud-agent (1.1.0) ...
    Processing triggers for ureadahead (0.100.0-16) ...
    Setting up libnfnetlink0:amd64 (1.0.1-2) ...
    Setting up libxtables10 (1.4.21-1ubuntu1) ...
    Setting up iptables (1.4.21-1ubuntu1) ...
    Setting up libapparmor1:amd64 (2.10.95-0ubuntu2.5~14.04.1) ...
    Setting up aufs-tools (1:3.2+20130722-1.1) ...
    Setting up xz-utils (5.1.1alpha+20120614-2ubuntu2) ...
    update-alternatives: using /usr/bin/xz to provide /usr/bin/lzma (lzma) in auto mode
    Setting up cgroup-lite (1.9) ...
    invoke-rc.d: unknown initscript, /etc/init.d/cgroup-lite not found.
    invoke-rc.d: policy-rc.d denied execution of start.
    Setting up dockercloud-agent (1.1.0) ...
    Processing triggers for libc-bin (2.19-0ubuntu6.9) ...
    Processing triggers for ureadahead (0.100.0-16) ...
    -> Configuring dockercloud-agent...
    -> Starting dockercloud-agent service...
     * Starting dockercloud agent: dockercloud-agent                         [ OK ]
    -> Done!
    
    *******************************************************************************
    Docker Cloud Agent installed successfully
    *******************************************************************************
    
    You can now deploy containers to this node using Docker Cloud
    

    服务的后续服务重启无效。

    1. 在Windows上的Ubuntu上运行Bash。

      结果:

      initct1: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused

0 个答案:

没有答案