« Docker stats » : différence entre les versions
| (Une version intermédiaire par le même utilisateur non affichée) | |||
| Ligne 28 : | Ligne 28 : | ||
Exemple : | Exemple : | ||
<syntaxhighlight lang="bash">docker stats nginx mysql</syntaxhighlight> | <syntaxhighlight lang="bash" copy>docker stats nginx mysql</syntaxhighlight> | ||
----- | ----- | ||
<span id="colonnes-affichées"></span> | <span id="colonnes-affichées"></span> | ||
== '''Colonnes affichées''' == | == '''Colonnes affichées''' == | ||
| Ligne 119 : | Ligne 120 : | ||
Après avoir configuré <code>--memory=1g</code>, vérifiez avec : | Après avoir configuré <code>--memory=1g</code>, vérifiez avec : | ||
<syntaxhighlight lang="bash">docker stats</syntaxhighlight> | <syntaxhighlight lang="bash" copy>docker stats</syntaxhighlight> | ||
→ Si <code>MEM USAGE / LIMIT</code> dépasse souvent la limite, ajustez-la. | → Si <code>MEM USAGE / LIMIT</code> dépasse souvent la limite, ajustez-la. | ||
<span id="comparer-limpact-avantaprès-un-déploiement"></span> | <span id="comparer-limpact-avantaprès-un-déploiement"></span> | ||
=== '''3. Comparer l’impact avant/après un déploiement''' === | === '''3. Comparer l’impact avant/après un déploiement''' === | ||