-
Notifications
You must be signed in to change notification settings - Fork 45
Add daemon.json with overlay2 to fix container startup issue #351
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
Open
polmoorx
wants to merge
1
commit into
open-edge-platform:3.0-dev
Choose a base branch
from
polmoorx:fix-docker-startup-overlay2
base: 3.0-dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+25
−1
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"data-root": "/opt/docker-data", | ||
"storage-driver": "overlay2" | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
Summary: The open-source application container engine | ||
Name: moby-engine | ||
Version: 25.0.3 | ||
Release: 13%{?dist} | ||
Release: 14%{?dist} | ||
License: ASL 2.0 | ||
Group: Tools/Container | ||
URL: https://mobyproject.org | ||
|
@@ -13,6 +13,7 @@ Distribution: Azure Linux | |
Source0: https://github.com/moby/moby/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz | ||
Source1: docker.service | ||
Source2: docker.socket | ||
Source3: daemon.json | ||
|
||
Patch0: CVE-2022-2879.patch | ||
Patch1: enable-docker-proxy-libexec-search.patch | ||
|
@@ -103,11 +104,23 @@ mkdir -p %{buildroot}%{_unitdir} | |
install -p -m 644 %{SOURCE1} %{buildroot}%{_unitdir}/docker.service | ||
install -p -m 644 %{SOURCE2} %{buildroot}%{_unitdir}/docker.socket | ||
|
||
mkdir -p %{buildroot}/opt/docker-data | ||
chmod 0700 %{buildroot}/opt/docker-data | ||
|
||
mkdir -p -m 755 %{buildroot}%{_sysconfdir}/docker | ||
install -p -m 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/docker/daemon.json | ||
|
||
%post | ||
if ! grep -q "^docker:" /etc/group; then | ||
groupadd --system docker | ||
fi | ||
|
||
mkdir -p /opt/docker-data | ||
chmod 0700 /opt/docker-data | ||
if [ -d /var/lib/docker ] && [ ! -d /opt/docker-data/image ]; then | ||
rsync -a /var/lib/docker/ /opt/docker-data/ | ||
fi | ||
|
||
%preun | ||
%systemd_preun docker.service | ||
|
||
|
@@ -118,10 +131,16 @@ fi | |
%license LICENSE NOTICE | ||
%{_bindir}/dockerd | ||
%{_libexecdir}/docker-proxy | ||
%dir /opt/docker-data | ||
%dir %{_sysconfdir}/docker | ||
%config(noreplace) %{_sysconfdir}/docker/daemon.json | ||
%{_sysconfdir}/* | ||
%{_unitdir}/* | ||
|
||
%changelog | ||
* Tue Jul 28 2025 Polmoorx Shiva Kumar <[email protected]> - 25.0.3-14 | ||
- Add daemon.json with overlay2 to fix container startup issue | ||
|
||
* Fri May 30 2025 Ranjan Dutta <[email protected]> - 25.0.3-13 | ||
- merge from Azure Linux 3.0.20250521-3.0 | ||
- Patch CVE-2025-30204 | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Redundant to line 118-119, where similar
mkdir -p /opt/docker-data
andchmod 0700
also added there.