Docker安装在我的Centos 7机器上:
Client: Version: 17.03.1-ce API version: 1.27
Server: Version: 17.03.1-ce API version: 1.27 (minimum version 1.12)
但是我无法安装docker-machine。以下是我尝试安装它的方法:
wget https://github.com/docker/machine/releases/download/v0.6.0/docker-machine-$(uname
-s)-$(uname -m)
mv docker-machine-Linux-x86_64 docker-machine
chmod +x docker-machine
sudo mv docker-machine /usr/local/bin
当我检查泊坞机版本时,
docker-machine version
我得到以下错误:
bash: docker-machine: command not found...
答案 0 :(得分:4)
转到/usr/bin instead
/usr/local/bin
mv docker-machine /usr/bin
答案 1 :(得分:0)
尝试将docker-machine添加到您的路径,如下所示: Docker Installing bash completion
如果没有,您可以运行table(groupAffiliationVec)
任何错误和完整输出都将不胜感激!
答案 2 :(得分:0)
我已按照您的步骤操作,即:
<html app>
<head>
<title> Dive Destinations </title>
<link rel="stylesheet" href="css/style.css">
<script type="text/javascript"> </script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.2/jquery.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/angular.js/1.6.4/angular.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular.min.js"></script>
<script src="dives.js"></script>
</head>
<body ng-controller="TopDivesController">
<nav class="float">
<a href="index.html" >HOME</a>
<a href="topdives.html"> TOP DIVE DESTINATIONS </a>
<a href="mydives.html" class="currentPg"> MY DIVE DESTINATIONS </a>
</nav>
<div class="outer">
<div class="middle">
<div class="inner">
<div class="bodySect">
<div ng-app="myDivesApp" ng-controller="MyDivesController">
<table cellpadding="0" cellspacing="0">
<tr>
<th>Site</th>
<th>Country</th>
<th></th>
</tr>
<tbody ng-repeat="n in myDives">
<tr>
<td>{{n.Site}}</td>
<td>{{n.Country}}</td>
<td><input type="button" ng-click="Remove($index)" value="Remove" /></td>
</tr>
</tbody>
<tfoot>
<tr>
<td><input type="text" ng-model="Site" /></td>
<td><input type="text" ng-model="Country" /></td>
<td><input type="button" ng-click="Add()" value="Add" /></td>
</tr>
</tfoot>
</table>
</body>
</html>
但此时我写道:
wget https://github.com/docker/machine/releases/download/v0.6.0/docker-
machine-$(uname-s)-$(uname
-m) mv docker-machine-Linux-x86_64 docker-machine chmod +x docker-machine
我希望它有所帮助。
答案 3 :(得分:0)
同意@Tioma,做第一步并且完美无缺
Install docker machine on Centos 7
[root @ osboxes Desktop] #mv docker-machine-Linux-x86_64 docker-machine
[root @ osboxes Desktop] #chmod + x docker-machine
[root @ osboxes Desktop] #sudo mv docker-machine / usr / bin
[root @ osboxes Desktop] #docker-machine version
docker-machine version 0.6.0,build e27fb87
答案 4 :(得分:0)
您可以尝试以下步骤:
chmod +x docker-machine
docker-machine version
测试安装是否有效。答案 5 :(得分:0)
创建符号链接
sudo ln -s /usr/local/bin/docker-machine /usr/bin/docker-machine