Commandes Linux : docker-machine mount

DOCKER-MACHINE MOUNT

Commande : docker-machine mount
Usage: docker-machine mount [OPTIONS] [arg...]

Mount or unmount a directory from a machine with SSHFS.

Description:
   Arguments are [machine:][path] [mountpoint]

Options:
   
   --unmount, -u	Unmount instead of mount

 

Monter un dossier d’une machine Docker sur une autre :

docker-machine mount machine:/path/to/machinerep hostrep

ex :

$ mkdir foo
$ docker-machine ssh dev mkdir foo
$ docker-machine mount dev:/home/docker/foo foo
$ touch foo/bar
$ docker-machine ssh dev ls foo
bar

 

Fermer le menu
%d blogueurs aiment cette page :