-
Notifications
You must be signed in to change notification settings - Fork 141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add socket activation for RHEL based distributions #273
Conversation
Removes the systemd drop-in unit file for socket activation and instead prefers socket activation by default for both RHEL based and DEBIAN based distributions. Socket activation for RHEL based distributions was tested on CentOS 7 and Fedora 28. Signed-off-by: Eli Uriegas <eli.uriegas@docker.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was there a reason for not using a drop-in file?
Also note that this will be a breaking change for RHEL/CentOS users that currently set the host through daemon.json; try using;
mkdir -p /etc/docker
echo '{"hosts":["tcp://localhost:2375"]}' > /etc/docker/daemon.json
And then restart the docker.service
This will be a breaking change for users who set the host through |
In previous releases, the host was only set on |
Socket activation was removed from docker engine in RPMs long time ago because of selinux policy incompatibilities, but since then the selinux policies are now compatible with socket activation. @seemethere had tested this PR's changes on a test build fedora and centos RPM packages. Since we did not have host port set in 18.06.1 RPM packages, I would not recommend backporting this change to the 18.06 codeline. Whereas since we already set the host port in 18.09.0 RPM packages, I would offer that it is safe to backport this change to the 18.09 codeline for the future 18.09.1 release. |
Alright; if we do, we should make sure there's a note in changelog/release-notes with instructions how to resolve the issue if you're upgrading from an older release. (And we should have a follow-up discussion around how |
Removes the systemd drop-in unit file for socket activation and instead
prefers socket activation by default for both RHEL based and DEBIAN
based distributions.
Socket activation for RHEL based distributions was tested on CentOS 7 and Fedora 28.
Signed-off-by: Eli Uriegas eli.uriegas@docker.com