diff --git a/rpm/Makefile b/rpm/Makefile index caa3cbdf93..81b8fe2db6 100644 --- a/rpm/Makefile +++ b/rpm/Makefile @@ -94,11 +94,6 @@ $(DISTROS): sources .PHONY: sources sources: rpmbuild/SOURCES/engine.tgz rpmbuild/SOURCES/cli.tgz rpmbuild/SOURCES/buildx.tgz rpmbuild/SOURCES/compose.tgz -sources: rpmbuild/SOURCES/01-rlimit_nofile-rhel7.patch - -rpmbuild/SOURCES/%.patch: - mkdir -p $(@D) - cp $(CURDIR)/patches/$(@F) $@ rpmbuild/SOURCES/engine.tgz: mkdir -p $(@D) diff --git a/rpm/SPECS/docker-ce-cli.spec b/rpm/SPECS/docker-ce-cli.spec index 2dfec9c29a..6ffe9bb08b 100644 --- a/rpm/SPECS/docker-ce-cli.spec +++ b/rpm/SPECS/docker-ce-cli.spec @@ -16,17 +16,8 @@ Packager: Docker Requires: /bin/sh Requires: /usr/sbin/groupadd -# CentOS 7 and RHEL 7 do not yet support weak dependencies -# -# Note that we're not using <= 7 here, to account for other RPM distros, such -# as Fedora, which would not have the rhel macro set (so default to 0). -%if 0%{?rhel} == 7 -Requires: docker-buildx-plugin -Requires: docker-compose-plugin -%else Recommends: docker-buildx-plugin Recommends: docker-compose-plugin -%endif BuildRequires: make BuildRequires: libtool-ltdl-devel diff --git a/rpm/SPECS/docker-ce.spec b/rpm/SPECS/docker-ce.spec index c7b60b0b98..bcfaa475e9 100644 --- a/rpm/SPECS/docker-ce.spec +++ b/rpm/SPECS/docker-ce.spec @@ -5,7 +5,6 @@ Version: %{_version} Release: %{_release}%{?dist} Epoch: 3 Source0: engine.tgz -Patch0: 01-rlimit_nofile-rhel7.patch Summary: The open-source application container engine Group: Tools/Docker License: ASL 2.0 @@ -15,15 +14,7 @@ Packager: Docker Requires: /usr/sbin/groupadd Requires: docker-ce-cli -# CentOS 7 and RHEL 7 do not yet support weak dependencies -# -# Note that we're not using <= 7 here, to account for other RPM distros, such -# as Fedora, which would not have the rhel macro set (so default to 0). -%if 0%{?rhel} == 7 -Requires: docker-ce-rootless-extras -%else Recommends: docker-ce-rootless-extras -%endif Requires: container-selinux >= 2:2.74 Requires: libseccomp >= 2.3 Requires: systemd @@ -78,9 +69,6 @@ depending on a particular stack or provider. %prep %setup -q -c -n src -a 0 -%if 0%{?rhel} == 7 -%patch -p1 -P 0 -%endif %build diff --git a/rpm/SPECS/docker-compose-plugin.spec b/rpm/SPECS/docker-compose-plugin.spec index 097c6cbdbf..382069bb04 100644 --- a/rpm/SPECS/docker-compose-plugin.spec +++ b/rpm/SPECS/docker-compose-plugin.spec @@ -12,13 +12,7 @@ URL: https://github.com/docker/compose/ Vendor: Docker Packager: Docker -# CentOS 7 and RHEL 7 do not yet support weak dependencies. -# -# Note that we're not using <= 7 here, to account for other RPM distros, such -# as Fedora, which would not have the rhel macro set (so default to 0). -%if 0%{?rhel} != 7 Enhances: docker-ce-cli -%endif BuildRequires: bash diff --git a/rpm/patches/01-rlimit_nofile-rhel7.patch b/rpm/patches/01-rlimit_nofile-rhel7.patch deleted file mode 100644 index 55a50aff88..0000000000 --- a/rpm/patches/01-rlimit_nofile-rhel7.patch +++ /dev/null @@ -1,15 +0,0 @@ -diff --git i/engine/contrib/init/systemd/docker.service w/engine/contrib/init/systemd/docker.service -index d8c7867057..b73ecf7363 100644 ---- i/engine/contrib/init/systemd/docker.service -+++ w/engine/contrib/init/systemd/docker.service -@@ -30,6 +30,10 @@ StartLimitInterval=60s - # in the kernel. We recommend using cgroups to do container-local accounting. - LimitNPROC=infinity - LimitCORE=infinity -+# Older systemd versions default to a LimitNOFILE of 1024:1024, which is insufficient for many -+# applications including dockerd itself and will be inherited. Raise the hard limit, while -+# preserving the soft limit for select(2). -+LimitNOFILE=1024:524288 - - # Comment TasksMax if your systemd version does not support it. - # Only systemd 226 and above support this option.