docker-archive/toolbox

Host is not running - Host "default" is not running

sinagozashte opened this issue · 6 comments

Hi

I tried to install the latest version of OpenFoam v1612. I have some problem installing:

  1. Error checking TLS connection: Host is not running
    2.Error: Cannot run SSH command: Host "default" is not running
    3.Failed to open a session for the virtual machine default.
    screenshot 2
    screenshot 3
    screenshot 4

Although I tried to solve it online, my problem still remains the same.
Note: My operting system is not "ubuntu" as I showed in the picture, it is "Linux 2.6".

Thank you for helping.

After installing Docker Toolbox 18.09.0 over an existing 18.06.1 on Windows 10, then upgrading the default machine with docker-machine upgrade, the VM cannot be managed any more because the ip command is not found in boot2docker:

$ docker-machine start
Starting "default"...
(default) Check network to re-create if needed...
(default) Windows might ask for the permission to configure a dhcp server. Sometimes, such confirmation window is minimized in the taskbar.
(default) Waiting for an IP...
Maximum number of retries (5) exceeded

$ docker-machine ls
NAME      ACTIVE   DRIVER       STATE     URL   SWARM   DOCKER    ERRORS
default   -        virtualbox   Running                 Unknown   ssh command error:
command : ip addr show
err     : exit status 127
output  : bash: ip: command not found

After installing Docker Toolbox 18.09.0 over an existing 18.06.1, then upgrading the default machine with docker-machine upgrade, the VM cannot be managed any more because the ip command is not found in boot2docker:

$ docker-machine start
Starting "default"...
(default) Check network to re-create if needed...
(default) Windows might ask for the permission to configure a dhcp server. Sometimes, such confirmation window is minimized in the taskbar.
(default) Waiting for an IP...
Maximum number of retries (5) exceeded

$ docker-machine ls
NAME      ACTIVE   DRIVER       STATE     URL   SWARM   DOCKER    ERRORS
default   -        virtualbox   Running                 Unknown   ssh command error:
command : ip addr show
err     : exit status 127
output  : bash: ip: command not found

I don't have any older version to upgrade. I just tried to install the latest version but I came across some errors as I described.
How can I fix the "Host is not running" error?

For me, it turned out to be some kind of vm upgrade issue.
I resolved it by creating a new default Docker vm with

docker-machine rm -y default && docker-machine create

The new vm works works as expected in Docker Quickstart Terminal and docker-machine.

@sinagozashte I think you got a different issue than me. Your screenshot shows two VMs named default. Perhaps deleting both and then reinstalling works for you.

if you need temporary solution to access your images or container, them just link ip binary on accessible place from $PATH, for example: docker-machine ssh default "ln -s /usr/local/sbin/ip /usr/local/bin/ip", but right solution to solve this problem, is recreation of docker machine.

bpmf commented

if you need temporary solution to access your images or container, them just link ip binary on accessible place from $PATH, for example: docker-machine ssh default "ln -s /usr/local/sbin/ip /usr/local/bin/ip", but right solution to solve this problem, is recreation of docker machine.

Improved this solution by creating the link at each booting:

docker-machine ssh default

sudo touch /mnt/sda1/var/lib/boot2docker/bootlocal.sh
sudo vi /mnt/sda1/var/lib/boot2docker/bootlocal.sh

#!/bin/sh
ln -s /usr/local/sbin/ip /usr/local/bin/ip