Skip to content

Commit 7e5c173

Browse files
author
Jim Minter
committed
Update required docker version to 1.12, including oc cluster up
1 parent 11034b2 commit 7e5c173

File tree

5 files changed

+8
-25
lines changed

5 files changed

+8
-25
lines changed

CONTRIBUTING.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Here's how to get set up:
4747
** http://git-scm.com/book/en/v2/Getting-Started-Installing-Git[Installing Git]
4848
** https://docs.docker.com/installation/[Installing Docker]
4949
+
50-
NOTE: As of now, OpenShift requires Docker 1.9 or higher.
50+
NOTE: As of now, OpenShift requires Docker 1.12 or higher.
5151
The exact version requirement is documented https://docs.openshift.org/latest/install_config/install/prerequisites.html#installing-docker[here].
5252

5353
2. Next, create a Go workspace directory: +

origin.spec

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
%global kube_plugin_path /usr/libexec/kubernetes/kubelet-plugins/net/exec/redhat~openshift-ovs-subnet
1010

1111
# docker_version is the version of docker requires by packages
12-
%global docker_version 1.9.1
12+
%global docker_version 1.12
1313
# tuned_version is the version of tuned requires by packages
1414
%global tuned_version 2.3
1515
# openvswitch_version is the version of openvswitch requires by packages

pkg/bootstrap/docker/join.go

-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,6 @@ func (c *ClientJoinConfig) StartOpenShiftNode(out io.Writer) error {
111111
opt := &openshift.StartOptions{
112112
ServerIP: c.ServerIP,
113113
UseSharedVolume: !c.UseNsenterMount,
114-
SetPropagationMode: c.SetPropagationMode,
115114
Images: c.imageFormat(),
116115
HostVolumesDir: c.HostVolumesDir,
117116
HostConfigDir: c.HostConfigDir,

pkg/bootstrap/docker/openshift/helper.go

+2-11
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ type StartOptions struct {
7777
RoutingSuffix string
7878
DNSPort int
7979
UseSharedVolume bool
80-
SetPropagationMode bool
8180
Images string
8281
HostVolumesDir string
8382
HostConfigDir string
@@ -251,11 +250,7 @@ func (h *Helper) Start(opt *StartOptions, out io.Writer) (string, error) {
251250
env = append(env, "OPENSHIFT_CONTAINERIZED=false")
252251
} else {
253252
binds = append(binds, "/:/rootfs:ro")
254-
propagationMode := ""
255-
if opt.SetPropagationMode {
256-
propagationMode = ":rslave"
257-
}
258-
binds = append(binds, fmt.Sprintf("%[1]s:%[1]s%[2]s", opt.HostVolumesDir, propagationMode))
253+
binds = append(binds, fmt.Sprintf("%[1]s:%[1]s:rslave", opt.HostVolumesDir))
259254
}
260255
env = append(env, opt.Environment...)
261256
binds = append(binds, fmt.Sprintf("%[1]s:%[1]s", opt.DockerRoot))
@@ -452,11 +447,7 @@ func (h *Helper) StartNode(opt *StartOptions, out io.Writer) error {
452447
env = append(env, "OPENSHIFT_CONTAINERIZED=false")
453448
} else {
454449
binds = append(binds, "/:/rootfs:ro")
455-
propagationMode := ""
456-
if opt.SetPropagationMode {
457-
propagationMode = ":rslave"
458-
}
459-
binds = append(binds, fmt.Sprintf("%[1]s:%[1]s%[2]s", opt.HostVolumesDir, propagationMode))
450+
binds = append(binds, fmt.Sprintf("%[1]s:%[1]s:rslave", opt.HostVolumesDir))
460451
}
461452
env = append(env, opt.Environment...)
462453

pkg/bootstrap/docker/up.go

+4-11
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,7 @@ var (
120120
"prometheus": "examples/prometheus/prometheus.yaml",
121121
"heapster standalone": "examples/heapster/heapster-standalone.yaml",
122122
}
123-
dockerVersion19 = semver.MustParse("1.9.0")
124-
dockerVersion110 = semver.MustParse("1.10.0")
123+
dockerVersion112 = semver.MustParse("1.12.0")
125124
)
126125

127126
// NewCmdUp creates a command that starts openshift on Docker with reasonable defaults
@@ -198,7 +197,6 @@ type CommonStartConfig struct {
198197
HTTPProxy string
199198
HTTPSProxy string
200199
NoProxy []string
201-
SetPropagationMode bool
202200
RouterIP string
203201
CACert string
204202

@@ -609,21 +607,17 @@ func (c *CommonStartConfig) CheckNsenterMounter(out io.Writer) error {
609607
// CheckDockerVersion checks that the appropriate Docker version is installed based on whether we are using the nsenter mounter
610608
// or shared volumes for OpenShift
611609
func (c *CommonStartConfig) CheckDockerVersion(out io.Writer) error {
612-
ver, rh, err := c.DockerHelper().Version()
610+
ver, _, err := c.DockerHelper().Version()
613611
if err != nil {
614612
glog.V(1).Infof("Failed to check Docker version: %v", err)
615613
fmt.Fprintf(out, "WARNING: Cannot verify Docker version\n")
616614
return nil
617615
}
618-
needVersion := dockerVersion19
619-
if !rh {
620-
needVersion = dockerVersion110
621-
}
616+
needVersion := dockerVersion112
622617
glog.V(5).Infof("Checking that docker version is at least %v", needVersion)
623618
if ver.LT(needVersion) {
624-
return fmt.Errorf("Docker version is %v, it needs to be %v", ver, needVersion)
619+
fmt.Fprintf(out, "WARNING: Docker version is %v, it needs to be >= %v\n", ver, needVersion)
625620
}
626-
c.SetPropagationMode = ver.GTE(dockerVersion110)
627621
return nil
628622
}
629623

@@ -760,7 +754,6 @@ func (c *ClientStartConfig) StartOpenShift(out io.Writer) error {
760754
RouterIP: c.RouterIP,
761755
RoutingSuffix: c.RoutingSuffix,
762756
UseSharedVolume: !c.UseNsenterMount,
763-
SetPropagationMode: c.SetPropagationMode,
764757
Images: c.imageFormat(),
765758
HostVolumesDir: c.HostVolumesDir,
766759
HostConfigDir: c.HostConfigDir,

0 commit comments

Comments
 (0)