Merge pull request #2376 from komljen/master
Take advantage of salt to run remote commands
This commit is contained in:
@@ -184,11 +184,11 @@ ID Image(s) Host
|
|||||||
78140853-3ffe-11e4-9036-0800279696e1 dockerfile/nginx 10.245.2.3/10.245.2.3 replicationController=myNginx Waiting
|
78140853-3ffe-11e4-9036-0800279696e1 dockerfile/nginx 10.245.2.3/10.245.2.3 replicationController=myNginx Waiting
|
||||||
```
|
```
|
||||||
|
|
||||||
You need to wait for the provisioning to complete, you can monitor the minions by doing
|
You need to wait for the provisioning to complete, you can monitor the minions by doing:
|
||||||
|
|
||||||
```
|
```
|
||||||
$ vagrant ssh minion-1
|
$ sudo salt '*minion-1' cmd.run 'docker images'
|
||||||
$ sudo docker images
|
kubernetes-minion-1:
|
||||||
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
|
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
|
||||||
<none> <none> 96864a7d2df3 26 hours ago 204.4 MB
|
<none> <none> 96864a7d2df3 26 hours ago 204.4 MB
|
||||||
google/cadvisor latest e0575e677c50 13 days ago 12.64 MB
|
google/cadvisor latest e0575e677c50 13 days ago 12.64 MB
|
||||||
@@ -198,7 +198,8 @@ kubernetes/pause latest 6c4579af347b 8 weeks ago
|
|||||||
Once the docker image for nginx has been downloaded, the container will start and you can list it:
|
Once the docker image for nginx has been downloaded, the container will start and you can list it:
|
||||||
|
|
||||||
```
|
```
|
||||||
$ sudo docker ps
|
$ sudo salt '*minion-1' cmd.run 'docker ps'
|
||||||
|
kubernetes-minion-1:
|
||||||
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
|
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
|
||||||
dbe79bf6e25b dockerfile/nginx:latest "nginx" 21 seconds ago Up 19 seconds k8s--mynginx.8c5b8a3a--7813c8bd_-_3ffe_-_11e4_-_9036_-_0800279696e1.etcd--7813c8bd_-_3ffe_-_11e4_-_9036_-_0800279696e1--fcfa837f
|
dbe79bf6e25b dockerfile/nginx:latest "nginx" 21 seconds ago Up 19 seconds k8s--mynginx.8c5b8a3a--7813c8bd_-_3ffe_-_11e4_-_9036_-_0800279696e1.etcd--7813c8bd_-_3ffe_-_11e4_-_9036_-_0800279696e1--fcfa837f
|
||||||
fa0e29c94501 kubernetes/pause:latest "/pause" 8 minutes ago Up 8 minutes 0.0.0.0:8080->80/tcp k8s--net.a90e7ce4--7813c8bd_-_3ffe_-_11e4_-_9036_-_0800279696e1.etcd--7813c8bd_-_3ffe_-_11e4_-_9036_-_0800279696e1--baf5b21b
|
fa0e29c94501 kubernetes/pause:latest "/pause" 8 minutes ago Up 8 minutes 0.0.0.0:8080->80/tcp k8s--net.a90e7ce4--7813c8bd_-_3ffe_-_11e4_-_9036_-_0800279696e1.etcd--7813c8bd_-_3ffe_-_11e4_-_9036_-_0800279696e1--baf5b21b
|
||||||
|
Reference in New Issue
Block a user