# Using RancherOS as host in docker-machine

**URL:** <https://forums.suse.com/t/using-rancheros-as-host-in-docker-machine/1705>\
**Category:** RancherOS\
**Created:** [February 11, 2016, 8:13pm UTC](https://forums.suse.com/t/using-rancheros-as-host-in-docker-machine/1705 "2016-02-11T20:13:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![petrosp](https://avatars.discourse-cdn.com/v4/letter/p/3ab097/32.png) [@petrosp](https://forums.suse.com/u/petrosp)\
**Post date:** [February 11, 2016, 8:13pm UTC](https://forums.suse.com/t/using-rancheros-as-host-in-docker-machine/1705/1 "2016-02-11T20:13:33Z")

</div>

Hey guys,

`RancherOS` supports integration with `docker-machine` since `v0.3.0` according to their documentation, [RancherOS](http://docs.rancher.com/os/running-rancheros/workstation/docker-machine/) and [Docker Machine](https://docs.docker.com/machine/drivers/os-base/) and `RancherOS`'s is more comprehensive.

Are there any guidelines regarding this?

For example, `RancherOS` documentation claims that only `rancher` user is allowed, but `docker-machine` is able to create one for itself (`docker`).

What about persistence, is it enough to replace the default `console` with `ubuntu-console` or is it necessary to install `RancherOS` to the VDD?

Anybody tweaked any such installation?

sysinfo: 10.11.3/Docker Toolbox 1.10

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![ryansch](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/ryansch/32/817_2.png) [@ryansch](https://forums.suse.com/u/ryansch)\
**Post date:** [February 12, 2016, 12:19am UTC](https://forums.suse.com/t/using-rancheros-as-host-in-docker-machine/1705/2 "2016-02-12T00:19:19Z")

</div>

I’m doing this currently. It works great!

Here’s the script I use to create a machine:

```auto
#!/bin/bash

MACHINE_NAME=$1
MEMORY=$2

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

if [-z "$MACHINE_NAME"]; then
  echo 'machine name required'
  exit 1
fi

if [-z "$MEMORY"]; then
  MEMORY="2048"
fi

RANCHER_OS_VERSION=v0.4.3-rc3
RANCHER_OS_URL=https://github.com/rancher/os/releases/download/$RANCHER_OS_VERSION/rancheros.iso
RANCHER_OS_FILE=$DIR/cache/$RANCHER_OS_VERSION/rancheros.iso

mkdir -p $DIR/cache/$RANCHER_OS_VERSION

if [! -e $RANCHER_OS_FILE]; then
  curl -L -o $DIR/cache/$RANCHER_OS_VERSION/rancheros.iso $RANCHER_OS_URL
fi

docker-machine create --driver=parallels --parallels-memory=$MEMORY --parallels-boot2docker-url $DIR/cache/$RANCHER_OS_VERSION/rancheros.iso $MACHINE_NAME

```

The autoformat container handles detecting the docker-machine env and setting up storage for the VM; no install needed. Also docker-machine does create a docker user and it seems to Just Work.
