Skip to content

Commit e2a28e4

Browse files
liushilongbuaar12f
authored andcommitted
[build] Fix Too many open file error after roll back docker-ce (sonic-net#24511)
Why I did it Fix too many open file error when building image
1 parent 814e269 commit e2a28e4

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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)