docker-machine
as tool for defining a VMopenshift
, important to provide target to stop and start VM later...oc
client to spin up OCP on previously defined VMoc cluster up
, but need OCP instead of community OpenShift) and persistence configuration for stop / restartingregistry.access.redhat.com/openshift3/ose
openshift
VM and specify version oc client"VirtualBox is required but not installed yet... download here:
https://www.virtualbox.org/wiki/Downloads"
"Docker is required but not installed yet... download here:
https://store.docker.com/search?offering=community&type=edition"
"Docker is installed... checking for valid version...Docker deamon is not running...
please start Docker for osX..."
"Docker deamon is not running... or is running insecurely...Check for instructions
at:
https://docs.docker.com/linux"
"Docker engine version X.X found... need 17.06, please update:
https://store.docker.com/search?offering=community&type=edition"
"docker-machine: command not found"
"Error occurred during openshift docker machine creation..."
$ curl -L https://github.com/docker/machine/releases/download/v0.12.2/docker-machine-`uname -s`-`uname -m` >/tmp/docker-machine &&
chmod +x /tmp/docker-machine && sudo cp /tmp/docker-machine /usr/local/bin/docker-machine
"OpenShift CLI tooling is required but not installed yet... download here:
https://access.redhat.com/downloads/content/290"
"OpenShift command line tools installed... checking for valid version...
Version of installed OpenShift command line tools is vX.X.X, must be v3.x.x or higher...
Download for Mac/Linux/Windows here:
https://access.redhat.com/downloads/content/290"
$ unzip ocp-install-demo-2.1.zip
$ cd ocp-install-demo-2.1
$ ./init{-win10}.{sh|bat}
# This will remove the installation:
$ docker-machine rm -f openshift
# This will initialized OCP:
$ ./init.sh
# shutdown using:
$ oc cluster down --docker-machine=openshift
$ docker-machine stop openshift
# restart use the existing data and configuration:
$ docker-machine start openshift
$ oc cluster up --image=registry.access.redhat.com/openshift3/ose \
--host-data-dir=/var/lib/boot2docker/ocp-data \
--docker-machine=openshift \
--host-config-dir=/var/lib/boot2docker/ocp-config \
--use-existing-config=true --host-pv-dir=/var/lib/boot2docker/ocp-pv