You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Then, follow the instructions to install https://docs.docker.com/docker-for-mac/install/[`docker`].
69
+
Search the https://docs.docker.com/docker-for-mac/release-notes/[Docker for Mac releases] to find a link:/docs/cluster_up_down.md#prerequisites[supported
70
+
version] to download.
68
71
You will need to build `linux/amd64` binaries for the OpenShift server; if you
69
72
want to do the builds locally, you will need to follow the instructions to
Go `pkg` installers can be downloaded https://golang.org/dl/[here].
71
75
72
76
===== Windows
73
77
74
78
Follow the installation steps to install https://git-for-windows.github.io/[`git` for Windows]
75
79
and https://docs.docker.com/docker-for-windows/install/[`docker`].
80
+
Search the https://docs.docker.com/docker-for-windows/release-notes/[Docker for Windows releases] to find a link:/docs/cluster_up_down.md#prerequisites[supported
81
+
version] to download.
76
82
You will need to build `linux/amd64` binaries for the OpenShift server; if you
77
83
want to do the builds locally, you will need to follow the instructions to
-[Installing the Service Catalog](#installing-the-service-catalog)
15
16
-[Administrator Access](#administrator-access)
16
-
-[Docker Machine](#docker-machine)
17
17
-[Configuration](#configuration)
18
18
-[Etcd Data](#etcd-data)
19
19
-[Routing](#routing)
20
20
-[Specifying Images to Use](#specifying-images-to-use)
21
21
-[Accessing the OpenShift Registry Directly](#accessing-the-openshift-registry-directly)
22
22
23
-
## Pre-requisites
23
+
## Prerequisites
24
24
25
25
| NOTE |
26
26
| ---- |
27
27
| This command was released with the 1.3+ version of oc client tools, so you must be using version 1.3+ or newer for this command to work. |
28
28
29
+
To run an OpenShift cluster locally, you must have a compatible version of Docker installed in your environment.
30
+
OpenShift officially supports the following versions of Docker:
31
+
32
+
| OpenShift Version | Docker Version |
33
+
| ----------------- | -------------- |
34
+
| 3.9 | 1.13 |
35
+
| 3.6-3.7 | 1.12 |
36
+
| 1.4-1.5 | 1.12 |
37
+
| 1.3 | 1.10 |
29
38
30
39
## Overview
31
40
@@ -46,7 +55,7 @@ a URL to access the management console for your cluster.
46
55
| The default Firewalld configuration on Fedora blocks access to ports needed by containers running on an OpenShift cluster. Make sure you grant access to these ports. See step 3 below. |
47
56
| Check that `sysctl net.ipv4.ip_forward` is set to 1. |
48
57
49
-
1. Install Docker with your platform's package manager.
58
+
1. Install Docker with your platform's package manager. Consult the [compatibility table](#prerequisites) to select a supported version of Docker.
50
59
2. Configure the Docker daemon with an insecure registry parameter of `172.30.0.0/16`
51
60
- In RHEL and Fedora, edit the `/etc/containers/registries.conf` file and add the following lines:
52
61
```
@@ -112,7 +121,12 @@ $ oc cluster down
112
121
113
122
### MacOS with Docker for Mac
114
123
115
-
1. Install [Docker for Mac](https://docs.docker.com/docker-for-mac/) making sure you meet the [prerequisites](https://docs.docker.com/docker-for-mac/#/what-to-know-before-you-install).
124
+
> `oc cluster up` with Docker for Mac does not work with versions 3.7.1 and earlier.
125
+
We recommend using [Mac OS X with Docker Machine](#mac-os-x-with-docker-machine) with these versions of the openshift cli.
126
+
See [issue #17570](https://github.com/openshift/origin/issues/17570).
127
+
128
+
1. Install [Docker for Mac](https://docs.docker.com/docker-for-mac/release-notes/) making sure you meet the [prerequisites](https://docs.docker.com/docker-for-mac/#/what-to-know-before-you-install)
129
+
and download a [compatible version of Docker](#prerequisites).
116
130
2. Once Docker is running, add an insecure registry of `172.30.0.0/16`:
117
131
- From the Docker menu in the toolbar, select `Preferences...`
118
132
- Click on `Daemon` in the preferences dialog (note: on some older versions of Docker for Mac this is under `Advanced`)
@@ -133,7 +147,7 @@ $ oc cluster down
133
147
Download the Mac OS `oc` binary from [openshift-origin-client-tools-VERSION-mac.zip](https://github.com/openshift/origin/releases) and place it in your path.
134
148
135
149
> Please be aware that the 'oc cluster' set of commands are only available in the 1.3+ or newer releases.
136
-
150
+
137
151
3. Open Terminal and run
138
152
```
139
153
$ oc cluster up
@@ -144,38 +158,34 @@ To stop your cluster, run:
144
158
$ oc cluster down
145
159
```
146
160
147
-
### Mac OS X with Docker Toolbox
161
+
### Mac OS X with Docker Machine
148
162
149
-
1. Install [Docker Toolbox](https://www.docker.com/products/docker-toolbox) and ensure that it is functional.
150
-
2. Install the oc binary using homebrew with: `brew install openshift-cli`
163
+
1. Install [Docker for Mac](https://docs.docker.com/docker-for-mac/release-notes/) making sure you meet the [prerequisites](https://docs.docker.com/docker-for-mac/#/what-to-know-before-you-install)
164
+
and download a [compatible version of Docker](#prerequisites).
165
+
2. Install [VirtualBox for OSX Hosts](https://www.virtualbox.org/wiki/Downloads)
166
+
3. Install the oc binary using homebrew with: `brew install openshift-cli`
151
167
152
168
OR
153
169
154
170
Download the OS X `oc` binary from [openshift-origin-client-tools-VERSION-mac.zip](https://github.com/openshift/origin/releases) and place it in your path.
155
171
156
172
> Please be aware that the 'oc cluster' set of commands are only available in the 1.3+ or newer releases.
157
173
158
-
3. Open Terminal and run
174
+
4. Create a new docker machine named `openshift` with appropriate resource constraints. See [Getting Started with Docker Machine](https://docs.docker.com/machine/get-started/#create-a-machine) for instructions.
175
+
5. Open Terminal and run
159
176
```
160
-
$ oc cluster up --create-machine
177
+
$ oc cluster up --docker-machine=openshift
161
178
```
162
179
163
-
A Docker machine named `openshift` will be created using the VirtualBox driver and the OpenShift cluster
164
-
will be started on it.
180
+
OpenShift will start cluster on the docker machine you specified.
165
181
166
182
To stop the cluster, run:
167
183
168
184
```
169
185
$ oc cluster down --docker-machine=openshift
170
186
```
171
187
172
-
To create a machine with a different name, specify the `--docker-machine` argument with `--create-machine`:
173
-
174
-
```
175
-
$ oc cluster up --create-machine --docker-machine=mymachine
176
-
```
177
-
178
-
Once the machine has been created, the `--create-machine` argument is no longer needed. To start/stop OpenShift again, either:
188
+
To start/stop OpenShift again, either:
179
189
180
190
* Setup the Docker environment for the machine you wish to use, and then run `oc cluster up` and `oc cluster down`:
181
191
@@ -202,7 +212,8 @@ Once the machine has been created, the `--create-machine` argument is no longer
202
212
203
213
### Windows with Docker for Windows
204
214
205
-
1. Install [Docker for Windows](https://docs.docker.com/docker-for-windows/) making sure you meet the [prerequisites](https://docs.docker.com/docker-for-windows/#/what-to-know-before-you-install).
215
+
1. Install [Docker for Windows](https://docs.docker.com/docker-for-windows/relase-notes/) making sure you meet the [prerequisites](https://docs.docker.com/docker-for-windows/#/what-to-know-before-you-install)
216
+
and download a [compatible version of Docker](#prerequisites).
206
217
2. Once Docker is running, add an insecure registry of `172.30.0.0/16`:
207
218
- Right click on the Docker icon in the notification area and select `Settings...`
208
219
- Click on `Docker Daemon` in the settings dialog
@@ -229,35 +240,30 @@ To stop the cluster, run:
229
240
C:\> oc cluster down
230
241
```
231
242
232
-
### Windows with Docker Toolbox
243
+
### Windows with Docker Machine
233
244
234
-
1. Install [Docker Toolbox](https://www.docker.com/products/docker-toolbox) and ensure that it is functional.
235
-
2. Download the Windows `oc.exe` binary from [openshift-origin-client-tools-VERSION-windows.zip](https://github.com/openshift/origin/releases) and place it in your path.
245
+
1. Install [Docker for Windows](https://docs.docker.com/docker-for-windows/release-notes/) making sure you meet the [prerequisites](https://docs.docker.com/docker-for-windows/#/what-to-know-before-you-install)
246
+
and download a [compatible version of Docker](#prerequisites).
247
+
2. Review the [prerequisite instructions](https://docs.docker.com/machine/get-started/#prerequisite-information) to set up Docker Machine on Windows.
248
+
3. Download the Windows `oc.exe` binary from [openshift-origin-client-tools-VERSION-windows.zip](https://github.com/openshift/origin/releases) and place it in your path.
236
249
237
250
> Please be aware that the 'oc cluster' set of commands are only available in the 1.3+ or newer releases.
238
-
239
-
3. Open a Command window as Administrator (for most drivers, docker-machine on Windows requires administrator privileges)
251
+
4. Create a new docker machine named `openshift` with appropriate resource constraints. See [Getting Started with Docker Machine](https://docs.docker.com/machine/get-started/#create-a-machine) for instructions.
252
+
5. Open a Command window as Administrator (for most drivers, docker-machine on Windows requires administrator privileges)
240
253
and run:
241
254
```
242
-
C:\> oc cluster up --create-machine
255
+
C:\> oc cluster up --docker-machine=openshift
243
256
```
244
257
245
-
A Docker machine named `openshift` will be created using the VirtualBox driver and the OpenShift cluster
246
-
will be started on it.
258
+
OpenShift will start cluster on the docker machine you specified.
247
259
248
260
To stop the cluster, run:
249
261
250
262
```
251
263
C:\> oc cluster down --docker-machine=openshift
252
264
```
253
265
254
-
To create a machine with a different name, specify the `--docker-machine` argument with `--create-machine`:
255
-
256
-
```
257
-
C:\> oc cluster up --create-machine --docker-machine=mymachine
258
-
```
259
-
260
-
Once the machine has been created, the `--create-machine` argument is no longer needed. To start/stop OpenShift again, either:
266
+
To start/stop OpenShift again, either:
261
267
262
268
* Setup the Docker environment for the machine you wish to use, and then run `oc cluster up` and `oc cluster down`:
263
269
```
@@ -367,30 +373,6 @@ To return to the regular `developer` user, login as that user:
367
373
oc login -u developer
368
374
```
369
375
370
-
## Docker Machine
371
-
372
-
By default, when `--create-machine` is used to create a new Docker machine, the `oc cluster up` command will use the
373
-
VirtualBox driver. In order to use a different driver, you must create the Docker machine beforehand
374
-
and either specify its name with the `--docker-machine` argument, or set its environment using the `docker-machine env`
375
-
command. When creating a Docker machine manually, you must specify the `--engine-insecure-registry` argument with the
376
-
value expected by OpenShift.
377
-
378
-
Following are examples of creating a new Docker machine in OS X using the [xhyve](https://github.com/zchee/docker-machine-driver-xhyve) driver,
379
-
and in Windows, using the [hyper-v](https://docs.docker.com/machine/drivers/hyper-v/) driver.
0 commit comments