docker-machine使用

docker-machine命令

[root@master ~]# docker-machine --help
Usage: docker-machine [OPTIONS] COMMAND [arg...]

Create and manage machines running Docker.

Version: 0.14.0, build 89b8332

Author:
  Docker Machine Contributors - //github.com/docker/machine>

Options:
  --debug, -D                   Enable debug mode
  --storage-path, -s "/root/.docker/machine"    Configures storage path [$MACHINE_STORAGE_PATH]
  --tls-ca-cert                 CA to verify remotes against [$MACHINE_TLS_CA_CERT]
  --tls-ca-key                  Private key to generate certificates [$MACHINE_TLS_CA_KEY]
  --tls-client-cert                 Client cert to use for TLS [$MACHINE_TLS_CLIENT_CERT]
  --tls-client-key              Private key used in client TLS auth [$MACHINE_TLS_CLIENT_KEY]
  --github-api-token                Token to use for requests to the Github API [$MACHINE_GITHUB_API_TOKEN]
  --native-ssh                  Use the native (Go-based) SSH implementation. [$MACHINE_NATIVE_SSH]
  --bugsnag-api-token               BugSnag API token for crash reporting [$MACHINE_BUGSNAG_API_TOKEN]
  --help, -h                    show help
  --version, -v                 print the version
  
Commands:
  active        Print which machine is active
  config        Print the connection config for machine
  create        Create a machine
  env           Display the commands to set up the environment for the Docker client
  inspect       Inspect information about a machine
  ip            Get the IP address of a machine
  kill          Kill a machine
  ls            List machines
  provision     Re-provision existing machines
  regenerate-certs  Regenerate TLS Certificates for a machine
  restart       Restart a machine
  rm            Remove a machine
  ssh           Log into or run a command on a machine with SSH.
  scp           Copy files between machines
  mount         Mount or unmount a directory from a machine with SSHFS.
  start         Start a machine
  status        Get the status of a machine
  stop          Stop a machine
  upgrade       Upgrade a machine to the latest version of Docker
  url           Get the URL of a machine
  version       Show the Docker Machine version or a machine docker version
  help          Shows a list of commands or help for one command

docker-machine active
显示当前的活动主机

docker-machine config
显示连接主机的配置

docker-machine create
创建一个主机

docker-machine env
设置当前的环境与哪个主机通信

docker-machine inspect
查看主机的详细信息

docker-machine ip
查看主机的IP 

docker-machine kill
强制关闭一个主机

docker-machine ls 
查看所有的主机信息

docker-machine provision
重新配置现在主机

docker-machine regenerate-certs
为主机重新生成证书

docker-machine restart
重启主机

docker-machine rm
删除主机

docker-machine ssh
以SSH的方式连接到主机上

docker-machine scp
远程复制

docker-machine status
查看主机的状态

docker-machine stop
停止一个正在运行的主机

docker-machine upgrade
升级主机的docker服务到最新版本

docker-machine version
查看docker-machine版本

 

 

 

 

 

 

[root@master ~]# docker-machine --help Usage: docker-machine [OPTIONS] COMMAND [arg...] Create and manage machines running Docker. Version: 0.14.0, build 89b8332 Author: Docker Machine Contributors - Options: --debug, -D Enable debug mode--storage-path, -s "/root/.docker/machine" Configures storage path [$MACHINE_STORAGE_PATH]--tls-ca-cert CA to verify remotes against [$MACHINE_TLS_CA_CERT]--tls-ca-key Private key to generate certificates [$MACHINE_TLS_CA_KEY]--tls-client-cert Client cert to use for TLS [$MACHINE_TLS_CLIENT_CERT]--tls-client-key Private key used in client TLS auth [$MACHINE_TLS_CLIENT_KEY]--github-api-token Token to use for requests to the Github API [$MACHINE_GITHUB_API_TOKEN]--native-ssh Use the native (Go-based) SSH implementation. [$MACHINE_NATIVE_SSH]--bugsnag-api-token BugSnag API token for crash reporting [$MACHINE_BUGSNAG_API_TOKEN]--help, -h show help--version, -v print the version Commands: active Print which machine is active config Print the connection config for machine create Create a machine env Display the commands to set up the environment for the Docker client inspect Inspect information about a machine ip Get the IP address of a machine kill Kill a machine ls List machines provision Re-provision existing machines regenerate-certs Regenerate TLS Certificates for a machine restart Restart a machine rm Remove a machine ssh Log into or run a command on a machine with SSH. scp Copy files between machines mount Mount or unmount a directory from a machine with SSHFS. start Start a machine status Get the status of a machine stop Stop a machine upgrade Upgrade a machine to the latest version of Docker url Get the URL of a machine version Show the Docker Machine version or a machine docker version help Shows a list of commands or help for one command docker-machine active 显示当前的活动主机 docker-machine config 显示连接主机的配置 docker-machine create 创建一个主机 docker-machine env 设置当前的环境与哪个主机通信 docker-machine inspect 查看主机的详细信息 docker-machine ip 查看主机的IP docker-machine kill 强制关闭一个主机 docker-machine ls 查看所有的主机信息 docker-machine provision 重新配置现在主机 docker-machine regenerate-certs 为主机重新生成证书 docker-machine restart 重启主机 docker-machine rm 删除主机 docker-machine ssh 以SSH的方式连接到主机上 docker-machine scp 远程复制 docker-machine status 查看主机的状态 docker-machine stop 停止一个正在运行的主机 docker-machine upgrade 升级主机的docker服务到最新版本 docker-machine version 查看docker-machine版本

你可能感兴趣的:(docker-machine使用)