Skip to content

Commit 8af56e4

Browse files
[build] Fix Too many open file error after roll back docker-ce (#24513)
Why I did it Fix too many open file error when building image
1 parent 265cc4c commit 8af56e4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Makefile.work

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,7 @@ DOCKER_RUN := docker run --rm=true --privileged --init \
310310
-e "https_proxy=$(https_proxy)" \
311311
-e "no_proxy=$(no_proxy)" \
312312
-i$(shell { if [ -t 0 ]; then echo t; fi }) \
313+
--ulimit nofile=524288:524288 \
313314
$(SONIC_BUILDER_EXTRA_CMDLINE)
314315

315316
# Mount the $(DOCKER_ROOT) to /var/lib/docker in the slave container, the overlay fs is not supported as dockerd root folder.

0 commit comments

Comments
 (0)