我在公司数据中心的Linux VM上安装了docker-engine.我在我的窗户上安装了docker-machine.我想通过我的Windows机器来管理这个docker-engine.我想添加这个主机,为此我执行了以下命令:
docker-machine create -d generic --generic-ip-address 10.51.227.5 --generic-ssh-port 22 --generic-ssh-user root compute
Run Code Online (Sandbox Code Playgroud)
但是等了几分钟后我收到了以下错误
Running pre-create checks...
Creating machine...
(compute) No SSH key specified. Connecting to this machine now and in the future will require the ssh agent to contain the appropriate key.
Waiting for machine to be running, this may take a few minutes...
Detecting operating system of created instance...
Waiting for SSH to be available...
Error creating machine: Error detecting OS: Too many retries waiting for SSH to …Run Code Online (Sandbox Code Playgroud) 我有一个字符串n ="abc".我想反转它并找到像n [:: - 1]这样的解决方案.所有3个参数的含义是什么?谁能解释一下?
我在 AWS 上为不同区域提供了产品。但对于 GovCloud 区域,ARN 结构与普通区域不同。当我们使用 ARN 时,政府区域中的正常部署失败。为此,我添加了一个检查区域名称是否为 Gov 区域的检查。但我必须对区域名称进行硬编码。是否有任何通用条件来检查当前区域是 CFT 中的政府区域?