Red Hat Bugzilla – Bug 1296332
[DOCS] [SME] Use command to change default /etc/sysconfig/docker
Last modified: 2016-08-02 09:24:39 EDT
Document URL: https://docs.openshift.com/enterprise/3.1/install_config/install/prerequisites.html#software-prerequisites
Section Number and Name: Installing Docker (2)
Describe the issue:
Give the user a simple command to run to change the default configuration file. This would allow the user to easily script a complete install from a Kickstart or cloud-init setup.
Suggestions for improvement:
Add a command like this:
sed -i '/OPTIONS=.*/c\OPTIONS="--selinux-enabled --insecure-registry 172.30.0.0/16"' /etc/sysconfig/docker
to the section.
It looks like the ansible installer in 3.2 adds this entry now, so it's no longer a requirement pre-install?
Work in progress:
@Peter Please review my first pass at this:
Based on your previous comment, I labeled this edit for OSE 3.1, not 3.2.
Only the "advanced installer" automatically changes /etc/sysconfig/docker - the "quick install" does not. There are quite a few things in the installation guide today which is only required if you use the quick-installer - so if the assumption is tha the guide only applies to customers using the quick install option, then we still need something to help out there.
I would suggest making sure that features implemented automatically with the advanced installer gets added to the quick-installer, so post-install a user will be at the same point regardless of installation method.
@Peter Thank you! I made some edits to this section and will revisit the installation section (Quick vs Advanced Installation methods) outside of this PR.
Per https://bugzilla.redhat.com/show_bug.cgi?id=1317755, --insecure-registry 172.30.0.0/16 will be added automatically to /etc/sysconfig/docker when great than openshift-ansible-3.0.88-1.git.0.31c3daf.el7.
And currently in 3.0/3.1/3.2/3.3 all should have this change as all openshift-ansible > 3.0.88.
@Ashley, there is no need to make any other edits IMO (Both advanced/quick installer will add "--insecure-registry 172.30.0.0/16" automatically in 3.0/3.1/3.2/3.3).
Commits pushed to master at https://github.com/openshift/openshift-docs
Bug 1296332, added directions on changing the default configuration file in the Installing Docker section
Merge pull request #2504 from ahardin-rh/software-prerequisites
Bug 1296332, added directions on changing the default config file in the Installing Docker section
Content is now published: