Skip to content

Commit

Permalink
Workaround occasional failures of docker system prune in public runne…
Browse files Browse the repository at this point in the history
…rs (#38825)

Occasionally `docker syetem prune` fails on Public docker runners with

file resize error: truncate /var/lib/docker/buildkit/containerdmeta.db:
read-only file system

This happens after docker has been already cleaned and should have no
side efects if the metadata db could not be truncated.

Ignoring error in this case should allow the job to continue.

(cherry picked from commit f50cc61)
  • Loading branch information
potiuk authored and ephraimbuddy committed Apr 16, 2024
1 parent b041557 commit 46e427d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/ci/cleanup_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# specific language governing permissions and limitations
# under the License.
function cleanup_docker {
docker system prune --all --force --volumes
docker system prune --all --force --volumes || true
}

cleanup_docker

0 comments on commit 46e427d

Please sign in to comment.