Docker Community Forums

Share and learn in the Docker community.

Memory and cpu limit in dockerfile

(Simon0356) #1

Hi all,
I read the doc but i can’t find if it’s possible to fix memory and cpu limit in docker file instead fix then in config.json after the build ?

thanks !

(Sven Dowideit) #2

No sorry, the memory and cpu limit settings are a run-time setting, and so are adjusted using docker run --cpuset --memory