Commandes Linux : docker-machine ssh

DOCKER-MACHINE SSH

Commande : docker-machine ssh
Usage: docker-machine ssh [arg...]

Log into or run a command on a machine with SSH.

Description:
   Arguments are [machine-name] [command]

 

Se connecter en SSH à machine Docker ou exécuter une commande sur une machine Docker :

docker-machine ssh machine

ex :

$ docker-machine ssh manager
                        ##         .
                  ## ## ##        ==
               ## ## ## ## ##    ===
           /"""""""""""""""""\___/ ===
      ~~~ {~~ ~~~~ ~~~ ~~~~ ~~~ ~ /  ===- ~~~
           \______ o           __/
             \    \         __/
              \____\_______/
 _                 _   ____     _            _
| |__   ___   ___ | |_|___ \ __| | ___   ___| | _____ _ __
| '_ \ / _ \ / _ \| __| __) / _` |/ _ \ / __| |/ / _ \ '__|
| |_) | (_) | (_) | |_ / __/ (_| | (_) | (__|   <  __/ |
|_.__/ \___/ \___/ \__|_____\__,_|\___/ \___|_|\_\___|_|
Boot2Docker version 18.05.0-ce, build HEAD : b5d6989 - Thu May 10 16:35:28 UTC 2018
Docker version 18.05.0-ce, build f150324
docker@manager:~$
$ docker-machine ssh manager free
             total       used       free     shared    buffers     cached
Mem:       1019528     305564     713964     231348       5192     231580
-/+ buffers/cache:      68792     950736
Swap:      1154516          0    1154516
$ docker-machine ssh manager df -hT
Filesystem           Type            Size      Used Available Use% Mounted on
tmpfs                tmpfs         896.1M    225.9M    670.1M  25% /
tmpfs                tmpfs         497.8M         0    497.8M   0% /dev/shm
/dev/sda1            ext4           17.9G     44.8M     16.9G   0% /mnt/sda1
cgroup               tmpfs         497.8M         0    497.8M   0% /sys/fs/cgroup
c/Users              vboxsf        475.8G    202.8G    273.0G  43% /c/Users
/dev/sda1            ext4           17.9G     44.8M     16.9G   0% /mnt/sda1/var/lib/docker

 

Fermer le menu
%d blogueurs aiment cette page :