Another issue in Docker Quick Start Terminal

I have installed DockerToolbox-1.8.2. I get the following error when running the Docker Qucik Start terminal:

Either VirtualBox or Docker Machine are not installed. Please re-run the Toolbox Installer and try again.
Looks like something went wrong… Press any key to continue…

Also, there are no VMs in my Oracle VM VirtualBox Manager

What happens if you try to create the default VM manually?

docker-machine --debug create -d virtualbox --virtualbox-memory 2048 default

/Jeff

EDIT: I had accidentally put in a -t instead of a -d.

I tried a lot of variations of this command and I get usage errors:

C:\Windows\system32>docker-machine create -t virtualbox --virtualbox-memory 2048 default
Incorrect Usage.

Usage: docker-machine create [OPTIONS] [arg…]

Create a machine

Options:

–amazonec2-access-key AWS Access Key [$AWS_ACCESS_KE
Y_ID]
–amazonec2-ami AWS machine image [$AWS_AMI]
–amazonec2-iam-instance-profile AWS IAM Instance Profile [$AWS
_INSTANCE_PROFILE]
–amazonec2-instance-type “t2.micro” AWS instance type [$AWS_INSTAN
CE_TYPE]
–amazonec2-monitoring Set this flag to enable CloudW
atch monitoring
–amazonec2-private-address-only Only use a private IP address
–amazonec2-region “us-east-1” AWS region [$AWS_DEFAULT_REGIO
N]
–amazonec2-request-spot-instance Set this flag to request spot
instance
–amazonec2-root-size “16” AWS root disk size (in GB) [$A
WS_ROOT_SIZE]
–amazonec2-secret-key AWS Secret Key [$AWS_SECRET_AC
CESS_KEY]
–amazonec2-security-group “docker-machine” AWS VPC security group [$AWS_S
ECURITY_GROUP]
–amazonec2-session-token AWS Session Token [$AWS_SESSIO
N_TOKEN]
–amazonec2-spot-price “0.50” AWS spot instance bid price (i
n dollar)
–amazonec2-ssh-user “ubuntu” set the name of the ssh user [
$AWS_SSH_USER]
–amazonec2-subnet-id AWS VPC subnet id [$AWS_SUBNET
_ID]
–amazonec2-vpc-id AWS VPC id [$AWS_VPC_ID]
–amazonec2-zone “a” AWS zone for instance (i.e. a,
b,c,d,e) [$AWS_ZONE]
–azure-docker-port “2376” Azure Docker port
–azure-docker-swarm-master-port “3376” Azure Docker Swarm master port

–azure-image Azure image name. Default is U
buntu 14.04 LTS x64 [$AZURE_IMAGE]
–azure-location “West US” Azure location [$AZURE_LOCATIO
N]
–azure-password Azure user password
–azure-publish-settings-file Azure publish settings file [$
AZURE_PUBLISH_SETTINGS_FILE]
–azure-size “Small” Azure size [$AZURE_SIZE]
–azure-ssh-port “22” Azure SSH port
–azure-subscription-cert Azure subscription cert [$AZUR
E_SUBSCRIPTION_CERT]
–azure-subscription-id Azure subscription ID [$AZURE_
SUBSCRIPTION_ID]
–azure-username “ubuntu” Azure username
–digitalocean-access-token Digital Ocean access token [$D
IGITALOCEAN_ACCESS_TOKEN]
–digitalocean-backups enable backups for droplet [$D
IGITALOCEAN_BACKUPS]
–digitalocean-image “ubuntu-14-04-x64” Digital Ocean Image [$DIGITALO
CEAN_IMAGE]
–digitalocean-ipv6 enable ipv6 for droplet [$DIGI
TALOCEAN_IPV6]
–digitalocean-private-networking enable private networking for
droplet [$DIGITALOCEAN_PRIVATE_NETWORKING]
–digitalocean-region “nyc3” Digital Ocean region [$DIGITAL
OCEAN_REGION]
–digitalocean-size “512mb” Digital Ocean size [$DIGITALOC
EAN_SIZE]
–exoscale-api-key exoscale API key [$EXOSCALE_AP
I_KEY]
–exoscale-api-secret-key exoscale API secret key [$EXOS
CALE_API_SECRET]
–exoscale-availability-zone “ch-gva-2” exoscale availibility zone [$E
XOSCALE_AVAILABILITY_ZONE]
–exoscale-disk-size “50” exoscale disk size (10, 50, 10
0, 200, 400) [$EXOSCALE_DISK_SIZE]
–exoscale-image “ubuntu-14.04” exoscale image template [$EXSO
CALE_IMAGE]
–exoscale-instance-profile “small” exoscale instance profile (sma
ll, medium, large, …) [$EXOSCALE_INSTANCE_PROFILE]
–exoscale-security-group [–exoscale-security-group option --exoscale-security-group option] exoscale security group [$EXOS
CALE_SECURITY_GROUP]
–exoscale-url exoscale API endpoint [$EXOSCA
LE_ENDPOINT]
–generic-ip-address IP Address of machine
–generic-ssh-key “C:\Users\bob.ssh\id_rsa” SSH private key path
–generic-ssh-port “22” SSH port
–generic-ssh-user “root” SSH user
–google-address GCE Instance External IP [$GOO
GLE_ADDRESS]
–google-auth-token GCE oAuth token [$GOOGLE_AUTH_
TOKEN]
–google-disk-size “10” GCE Instance Disk Size (in GB)
[$GOOGLE_DISK_SIZE]
–google-disk-type “pd-standard” GCE Instance Disk type [$GOOGL
E_DISK_TYPE]
–google-machine-type “f1-micro” GCE Machine Type [$GOOGLE_MACH
INE_TYPE]
–google-preemptible GCE Instance Preemptibility [$
GOOGLE_PREEMPTIBLE]
–google-project GCE Project [$GOOGLE_PROJECT]
–google-scopes “https://www.googleapis.com/auth/devstorage.read_only,https://www.googleapis.com/auth/logging.write” GCE Scopes (comma-separated if
multiple scopes) [$GOOGLE_SCOPES]
–google-username “docker-user” GCE User Name [$GOOGLE_USERNAM
E]
–google-zone “us-central1-a” GCE Zone [$GOOGLE_ZONE]
–hyper-v-boot2docker-location Hyper-V local boot2docker iso.
Overrides URL.
–hyper-v-boot2docker-url Hyper-V URL of the boot2docker
image. Defaults to the latest available version.
–hyper-v-disk-size “20000” Hyper-V disk size for host in
MB.
–hyper-v-memory “1024” Hyper-V memory size for host i
n MB.
–hyper-v-virtual-switch Hyper-V virtual switch name. D
efaults to first found.
–openstack-auth-url OpenStack authentication URL [
$OS_AUTH_URL]
–openstack-availability-zone OpenStack availability zone [$
OS_AVAILABILITY_ZONE]
–openstack-domain-id OpenStack domain ID (identity
v3 only) [$OS_DOMAIN_ID]
–openstack-domain-name OpenStack domain name (identit
y v3 only) [$OS_DOMAIN_NAME]
–openstack-endpoint-type OpenStack endpoint type (admin
URL, internalURL or publicURL) [$OS_ENDPOINT_TYPE]
–openstack-flavor-id OpenStack flavor id to use for
the instance
–openstack-flavor-name OpenStack flavor name to use f
or the instance
–openstack-floatingip-pool OpenStack floating IP pool to
get an IP from to assign to the instance
–openstack-image-id OpenStack image id to use for
the instance
–openstack-image-name OpenStack image name to use fo
r the instance
–openstack-insecure Disable TLS credential checkin
g.
–openstack-net-id OpenStack network id the machi
ne will be connected on
–openstack-net-name OpenStack network name the mac
hine will be connected on
–openstack-password OpenStack password [$OS_PASSWO
RD]
–openstack-region OpenStack region name [$OS_REG
ION_NAME]
–openstack-sec-groups OpenStack comma separated secu
rity groups for the machine
–openstack-ssh-port “22” OpenStack SSH port
–openstack-ssh-user “root” OpenStack SSH user
–openstack-tenant-id OpenStack tenant id [$OS_TENAN
T_ID]
–openstack-tenant-name OpenStack tenant name [$OS_TEN
ANT_NAME]
–openstack-username OpenStack username [$OS_USERNA
ME]
–rackspace-api-key Rackspace API key [$OS_API_KEY
]
–rackspace-docker-install “true” Set if docker have to be insta
lled on the machine
–rackspace-endpoint-type “publicURL” Rackspace endpoint type (admin
URL, internalURL or the default publicURL) [$OS_ENDPOINT_TYPE]
–rackspace-flavor-id “general1-1” Rackspace flavor ID. Default:
General Purpose 1GB [$OS_FLAVOR_ID]
–rackspace-image-id Rackspace image ID. Default: U
buntu 14.04 LTS (Trusty Tahr) (PVHVM)
–rackspace-region Rackspace region name [$OS_REG
ION_NAME]
–rackspace-ssh-port “22” SSH port for the newly booted
machine. Set to 22 by default
–rackspace-ssh-user “root” SSH user for the newly booted
machine. Set to root by default
–rackspace-username Rackspace account username [$O
S_USERNAME]
–softlayer-api-endpoint “https://api.softlayer.com/rest/v3” softlayer api endpoint to use
[$SOFTLAYER_API_ENDPOINT]
–softlayer-api-key softlayer user API key [$SOFTL
AYER_API_KEY]
–softlayer-cpu “1” number of CPU’s for the machin
e [$SOFTLAYER_CPU]
–softlayer-disk-size “0” Disk size for machine, a value
of 0 uses the default size on softlayer [$SOFTLAYER_DISK_SIZE]
–softlayer-domain domain name for machine [$SOFT
LAYER_DOMAIN]
–softlayer-hostname hostname for the machine - def
aults to machine name [$SOFTLAYER_HOSTNAME]
–softlayer-hourly-billing set hourly billing for machine

  • on by default [$SOFTLAYER_HOURLY_BILLING]
    –softlayer-image “UBUNTU_LATEST” OS image for machine [$SOFTLAY
    ER_IMAGE]
    –softlayer-local-disk use machine local disk instead
    of softlayer SAN [$SOFTLAYER_LOCAL_DISK]
    –softlayer-memory “1024” Memory in MB for machine [$SOF
    TLAYER_MEMORY]
    –softlayer-private-net-only Use only private networking [$
    SOFTLAYER_PRIVATE_NET]
    –softlayer-private-vlan-id “0” [$SOFTLAYER_PRIVATE_VLAN_ID]
    –softlayer-public-vlan-id “0” [$SOFTLAYER_PUBLIC_VLAN_ID]
    –softlayer-region “dal01” softlayer region for machine [
    $SOFTLAYER_REGION]
    –softlayer-user softlayer user account name [$
    SOFTLAYER_USER]
    –url URL of host when no driver is
    selected
    –virtualbox-boot2docker-url The URL of the boot2docker ima
    ge. Defaults to the latest available version [$VIRTUALBOX_BOOT2DOCKER_URL]
    –virtualbox-cpu-count “1” number of CPUs for the machine
    (-1 to use the number of CPUs available) [$VIRTUALBOX_CPU_COUNT]
    –virtualbox-disk-size “20000” Size of disk for host in MB [$
    VIRTUALBOX_DISK_SIZE]
    –virtualbox-hostonly-cidr “192.168.99.1/24” Specify the Host Only CIDR [$V
    IRTUALBOX_HOSTONLY_CIDR]
    –virtualbox-import-boot2docker-vm The name of a Boot2Docker VM t
    o import
    –virtualbox-memory “1024” Size of memory for host in MB
    [$VIRTUALBOX_MEMORY_SIZE]
    –vmwarevcloudair-catalog “Public Catalog” vCloud Air Catalog (default is
    Public Catalog) [$VCLOUDAIR_CATALOG]
    –vmwarevcloudair-catalogitem “Ubuntu Server 12.04 LTS (amd64 20150127)” vCloud Air Catalog Item (defau
    lt is Ubuntu Precise) [$VCLOUDAIR_CATALOGITEM]
    –vmwarevcloudair-computeid vCloud Air Compute ID (if usin
    g Dedicated Cloud) [$VCLOUDAIR_COMPUTEID]
    –vmwarevcloudair-cpu-count “1” vCloud Air VM Cpu Count (defau
    lt 1) [$VCLOUDAIR_CPU_COUNT]
    –vmwarevcloudair-docker-port “2376” vCloud Air Docker port [$VCLOU
    DAIR_DOCKER_PORT]
    –vmwarevcloudair-edgegateway vCloud Air Org Edge Gateway (D
    efault is ) [$VCLOUDAIR_EDGEGATEWAY]
    –vmwarevcloudair-memory-size “2048” vCloud Air VM Memory Size in M
    B (default 2048) [$VCLOUDAIR_MEMORY_SIZE]
    –vmwarevcloudair-orgvdcnetwork vCloud Air Org VDC Network (De
    fault is -default-routed) [$VCLOUDAIR_ORGVDCNETWORK]
    –vmwarevcloudair-password vCloud Air password [$VCLOUDAI
    R_PASSWORD]
    –vmwarevcloudair-provision vCloud Air Install Docker bina
    ries (default is true) [$VCLOUDAIR_PROVISION]
    –vmwarevcloudair-publicip vCloud Air Org Public IP to us
    e [$VCLOUDAIR_PUBLICIP]
    –vmwarevcloudair-ssh-port “22” vCloud Air SSH port [$VCLOUDAI
    R_SSH_PORT]
    –vmwarevcloudair-username vCloud Air username [$VCLOUDAI
    R_USERNAME]
    –vmwarevcloudair-vdcid vCloud Air VDC ID [$VCLOUDAIR_
    VDCID]
    –vmwarevsphere-boot2docker-url vSphere URL for boot2docker im
    age [$VSPHERE_BOOT2DOCKER_URL]
    –vmwarevsphere-compute-ip vSphere compute host IP where
    the docker VM will be instantiated [$VSPHERE_COMPUTE_IP]
    –vmwarevsphere-cpu-count “2” vSphere CPU number for docker
    VM [$VSPHERE_CPU_COUNT]
    –vmwarevsphere-datacenter vSphere datacenter for docker
    VM [$VSPHERE_DATACENTER]
    –vmwarevsphere-datastore vSphere datastore for docker V
    M [$VSPHERE_DATASTORE]
    –vmwarevsphere-disk-size “20000” vSphere size of disk for docke
    r VM (in MB) [$VSPHERE_DISK_SIZE]
    –vmwarevsphere-memory-size “2048” vSphere size of memory for doc
    ker VM (in MB) [$VSPHERE_MEMORY_SIZE]
    –vmwarevsphere-network vSphere network where the dock
    er VM will be attached [$VSPHERE_NETWORK]
    –vmwarevsphere-password vSphere password [$VSPHERE_PAS
    SWORD]
    –vmwarevsphere-pool vSphere resource pool for dock
    er VM [$VSPHERE_POOL]
    –vmwarevsphere-username vSphere username [$VSPHERE_USE
    RNAME]
    –vmwarevsphere-vcenter vSphere IP/hostname for vCente
    r [$VSPHERE_VCENTER]
    –driver, -d “none” Driver to create machine with.
    Available drivers: amazonec2, azure, digitalocean, exoscale, generic, google, hyper-v, none, openstack, rackspace, softlayer, virtualbox, vmwarevclou
    dair, vmwarevsphere
    –engine-install-url “https://get.docker.com” Custom URL to use for engine i
    nstallation [$MACHINE_DOCKER_INSTALL_URL]
    –engine-opt [–engine-opt option --engine-opt option] Specify arbitrary flags to inc
    lude with the created engine in the form flag=value
    –engine-insecure-registry [–engine-insecure-registry option --engine-insecure-registry option] Specify insecure registries to
    allow with the created engine
    –engine-registry-mirror [–engine-registry-mirror option --engine-registry-mirror option] Specify registry mirrors to us
    e
    –engine-label [–engine-label option --engine-label option] Specify labels for the created
    engine
    –engine-storage-driver Specify a storage driver to us
    e with the engine
    –engine-env [–engine-env option --engine-env option] Specify environment variables
    to set in the engine
    –swarm Configure Machine with Swarm
    –swarm-image “swarm:latest” Specify Docker image to use fo
    r Swarm [$MACHINE_SWARM_IMAGE]
    –swarm-master Configure Machine to be a Swar
    m master
    –swarm-discovery Discovery service to use with
    Swarm
    –swarm-strategy “spread” Define a default scheduling st
    rategy for Swarm
    –swarm-opt [–swarm-opt option --swarm-opt option] Define arbitrary flags for swa
    rm
    –swarm-host “tcp://0.0.0.0:3376” ip/socket to listen on for Swa
    rm master
    –swarm-addr addr to advertise for Swarm (d
    efault: detect and use the machine IP)

Try to manually create a vm in virtual box with the gui.

Whoops, I had put in a -t where I should have put a -d. I edited my original post to include the correct command to try.

That created the VM in Oracle. I did see some errors in the command and I still see the original error when I start docker. I think this is a syntax error in the start.sh. I’ll put that in another topic.

C:\Windows\system32>docker-machine --debug create -d virtualbox --virtualbox-memory 2048 default
Creating CA: C:\Users\bob.docker\machine\certs\ca.pem
Creating client certificate: C:\Users\bob.docker\machine\certs\cert.pem
executing: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe
STDOUT: Oracle VM VirtualBox Command Line Management Interface Version 5.0.4
© 2005-2015 Oracle Corporation
All rights reserved.

Usage:

VBoxManage []

Now when I run Docker Quickstart I still get this error:

Either VirtualBox or Docker Machine are not installed. Please re-run the Toolbox Installer and try again.
Looks like something went wrong… Press any key to continue…

If I open up an admin shell and run. I get the error below. Sure enough the file: C:\Users\bob.docker\machine\machines\default\ca.pem is not there.

“\Program Files\Git\git-bash.exe”

I get a git-bash shell and when I run ./start.sh I get this error:

bob@BobH-10637 MINGW64 ~
$ pwd
/c/Users/bob

bob@BobH-10637 MINGW64 ~
$ cd /c/Program
Program Files/ Program Files (x86)/ ProgramData/

bob@BobH-10637 MINGW64 ~
$ cd /c/Program\ Files/Docker\ Toolbox/

bob@BobH-10637 MINGW64 /c/Program Files/Docker Toolbox
$ ./start.sh
Machine default already exists in VirtualBox.
Starting machine default…
Started machines may have new IP addresses. You may need to re-run the docker-m achine env command.
Setting environment variables for machine default…
open C:\Users\bob.docker\machine\machines\default\ca.pem: The system cannot find the file specified.

                    ##         .
              ## ## ##        ==
           ## ## ## ## ##    ===
       /"""""""""""""""""\___/ ===
  ~~~ {~~ ~~~~ ~~~ ~~~~ ~~~ ~ /  ===- ~~~
       \______ o           __/
         \    \         __/
          \____\_______/

docker is configured to use the default machine with IP 192.168.99.100
For help getting started, check out the docs at https://docs.docker.com

bob@BobH-10637 MINGW64 ~