HOME > > > > >

start

仮想マシンを起動する。docker-machine ls で表示されるNAMEを指定すると指定した仮想マシンのみ起動できる。

引数

[マシン名] 起動したいマシン名

実行例

docker-machine start

  1. $ docker-machine ls
  2. NAME      ACTIVE   DRIVER       STATE     URL   SWARM   DOCKER    ERRORS
  3. default   -        virtualbox   Stopped                 Unknown
  4.  
  5. $ docker-machine start
  6. Starting "default"...
  7. (default) Check network to re-create if needed...
  8. (default) Windows might ask for the permission to configure a dhcp server. Sometimes, such confirmation window is minimized in the taskbar.
  9. (default) Waiting for an IP...
  10. Machine "default" was started.
  11. Waiting for SSH to be available...
  12. Detecting the provisioner...
  13. Started machines may have new IP addresses. You may need to re-run the `docker-machine env` command.
  14. $ docker-machine ls
  15. NAME      ACTIVE   DRIVER       STATE     URL                         SWARM   DOCKER     ERRORS
  16. default   *        virtualbox   Running   tcp://192.168.99.100:2376           v19.03.5

停止する場合はdocker-machine stop

参照ページ

Docker Books