Problem
When I create a docker image, the issue "The repository 'http://ports.ubuntu.com/ubuntu-ports noble-security InRelease' is not signed" appears.
The problem is a lack of storage space due to disk usage limit setting in Docker Desktop.
The error log:
RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/*:
0.807 Get:1 http://ports.ubuntu.com/ubuntu-ports noble InRelease [256 kB]
2.139 Err:1 http://ports.ubuntu.com/ubuntu-ports noble InRelease
2.139 At least one invalid signature was encountered.
2.390 Get:2 http://ports.ubuntu.com/ubuntu-ports noble-updates InRelease [126 kB]
2.463 Err:2 http://ports.ubuntu.com/ubuntu-ports noble-updates InRelease
2.463 At least one invalid signature was encountered.
2.696 Get:3 http://ports.ubuntu.com/ubuntu-ports noble-backports InRelease [126 kB]
2.798 Err:3 http://ports.ubuntu.com/ubuntu-ports noble-backports InRelease
2.798 At least one invalid signature was encountered.
3.005 Get:4 http://ports.ubuntu.com/ubuntu-ports noble-security InRelease [126 kB]
3.118 Err:4 http://ports.ubuntu.com/ubuntu-ports noble-security InRelease
3.118 At least one invalid signature was encountered.
3.120 Reading package lists...
3.124 W: GPG error: http://ports.ubuntu.com/ubuntu-ports noble InRelease: At least one invalid signature was encountered.
3.124 E: The repository 'http://ports.ubuntu.com/ubuntu-ports noble InRelease' is not signed.
3.124 W: GPG error: http://ports.ubuntu.com/ubuntu-ports noble-updates InRelease: At least one invalid signature was encountered.
3.124 E: The repository 'http://ports.ubuntu.com/ubuntu-ports noble-updates InRelease' is not signed.
3.124 W: GPG error: http://ports.ubuntu.com/ubuntu-ports noble-backports InRelease: At least one invalid signature was encountered.
3.124 E: The repository 'http://ports.ubuntu.com/ubuntu-ports noble-backports InRelease' is not signed.
3.124 W: GPG error: http://ports.ubuntu.com/ubuntu-ports noble-security InRelease: At least one invalid signature was encountered.
3.124 E: The repository 'http://ports.ubuntu.com/ubuntu-ports noble-security InRelease' is not signed.
Solution
Set the disk usage limit to a high value.