tech:docker_nproc_nombre_maximum_de_process
Différences
Ci-dessous, les différences entre deux révisions de la page.
| tech:docker_nproc_nombre_maximum_de_process [2025/03/24 15:06] – créée - modification externe 127.0.0.1 | tech:docker_nproc_nombre_maximum_de_process [2025/04/04 20:17] (Version actuelle) – Jean-Baptiste | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| + | < | ||
| {{tag> | {{tag> | ||
| - | = Docker nproc nombre maximum de process | + | |
| + | # Docker nproc nombre maximum de process | ||
| Docker nproc Nombre maximum de process | Docker nproc Nombre maximum de process | ||
| Ligne 7: | Ligne 9: | ||
| Erreur '' | Erreur '' | ||
| - | == Exemple SystemD Docker | ||
| - | <code -> | + | ## Exemple SystemD Docker |
| + | |||
| + | ~~~ | ||
| # CTR=`docker run --pids-limit 111 --detach --rm busybox /bin/sleep 8h` | # CTR=`docker run --pids-limit 111 --detach --rm busybox /bin/sleep 8h` | ||
| # cat / | # cat / | ||
| Ligne 19: | Ligne 22: | ||
| # cat / | # cat / | ||
| max | max | ||
| - | </ | + | ~~~ |
| Source : https:// | Source : https:// | ||
| - | == Exemple de configuration du daemon Dockerd | + | |
| + | ## Exemple de configuration du daemon Dockerd | ||
| Option '' | Option '' | ||
| - | <code bash / | + | |
| + | '' | ||
| + | |||
| + | ~~~bash | ||
| # Modify these options if you want to change the way the docker daemon runs | # Modify these options if you want to change the way the docker daemon runs | ||
| OPTIONS=' | OPTIONS=' | ||
| - | </ | + | ~~~ |
| + | |||
| + | |||
| + | ### Diag sur OpenShift | ||
| - | === Diag sur OpenShift | + | ~~~bash |
| - | < | + | |
| # oc debug node/ | # oc debug node/ | ||
| # chroot /host | # chroot /host | ||
| Ligne 37: | Ligne 46: | ||
| # cat / | # cat / | ||
| 4096 | 4096 | ||
| - | </ | + | ~~~ |
| Source : https:// | Source : https:// | ||
| - | == Exemple de création de conteneur | + | ## Exemple de création de conteneur |
| - | < | + | ~~~bash |
| sudo docker create --name bankapp-inst -it \ | sudo docker create --name bankapp-inst -it \ | ||
| --sysctl fs.mqueue.msg_max=10000 \ | --sysctl fs.mqueue.msg_max=10000 \ | ||
| Ligne 50: | Ligne 59: | ||
| --ulimit nproc=256: | --ulimit nproc=256: | ||
| bankapp | bankapp | ||
| - | </ | + | ~~~ |
| Source : https:// | Source : https:// | ||
tech/docker_nproc_nombre_maximum_de_process.1742825205.txt.gz · Dernière modification : de 127.0.0.1
