<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="fr">
	<id>https://marmits.com/w/index.php?action=history&amp;feed=atom&amp;title=Docker_volumes</id>
	<title>Docker volumes - Historique des versions</title>
	<link rel="self" type="application/atom+xml" href="https://marmits.com/w/index.php?action=history&amp;feed=atom&amp;title=Docker_volumes"/>
	<link rel="alternate" type="text/html" href="https://marmits.com/w/index.php?title=Docker_volumes&amp;action=history"/>
	<updated>2026-05-25T03:31:00Z</updated>
	<subtitle>Historique des versions pour cette page sur le wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://marmits.com/w/index.php?title=Docker_volumes&amp;diff=3209&amp;oldid=prev</id>
		<title>Geo le 30 mai 2025 à 12:54</title>
		<link rel="alternate" type="text/html" href="https://marmits.com/w/index.php?title=Docker_volumes&amp;diff=3209&amp;oldid=prev"/>
		<updated>2025-05-30T12:54:46Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;fr&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Version précédente&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version du 30 mai 2025 à 14:54&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l15&quot;&gt;Ligne 15 :&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Ligne 15 :&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   nodeModule:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   nodeModule:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;---&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;-&lt;/ins&gt;---&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Cette syntaxe &amp;lt;/code&amp;gt; concerne la gestion des &amp;#039;&amp;#039;&amp;#039;volumes nommés&amp;#039;&amp;#039;&amp;#039; dans Docker. Voici ce qu’il faut comprendre :&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Cette syntaxe &amp;lt;/code&amp;gt; concerne la gestion des &amp;#039;&amp;#039;&amp;#039;volumes nommés&amp;#039;&amp;#039;&amp;#039; dans Docker. Voici ce qu’il faut comprendre :&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wiki2025-mar_:diff:1.41:old-3208:rev-3209:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Geo</name></author>
	</entry>
	<entry>
		<id>https://marmits.com/w/index.php?title=Docker_volumes&amp;diff=3208&amp;oldid=prev</id>
		<title>Geo le 30 mai 2025 à 12:54</title>
		<link rel="alternate" type="text/html" href="https://marmits.com/w/index.php?title=Docker_volumes&amp;diff=3208&amp;oldid=prev"/>
		<updated>2025-05-30T12:54:39Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;fr&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Version précédente&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version du 30 mai 2025 à 14:54&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l14&quot;&gt;Ligne 14 :&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Ligne 14 :&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   var:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   var:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   nodeModule:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   nodeModule:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;---&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;---&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Cette syntaxe &amp;lt;/code&amp;gt; concerne la gestion des &amp;#039;&amp;#039;&amp;#039;volumes nommés&amp;#039;&amp;#039;&amp;#039; dans Docker. Voici ce qu’il faut comprendre :&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Cette syntaxe &amp;lt;/code&amp;gt; concerne la gestion des &amp;#039;&amp;#039;&amp;#039;volumes nommés&amp;#039;&amp;#039;&amp;#039; dans Docker. Voici ce qu’il faut comprendre :&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wiki2025-mar_:diff:1.41:old-3207:rev-3208:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Geo</name></author>
	</entry>
	<entry>
		<id>https://marmits.com/w/index.php?title=Docker_volumes&amp;diff=3207&amp;oldid=prev</id>
		<title>Geo le 30 mai 2025 à 12:54</title>
		<link rel="alternate" type="text/html" href="https://marmits.com/w/index.php?title=Docker_volumes&amp;diff=3207&amp;oldid=prev"/>
		<updated>2025-05-30T12:54:28Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;fr&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Version précédente&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version du 30 mai 2025 à 14:54&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l14&quot;&gt;Ligne 14 :&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Ligne 14 :&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   var:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   var:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   nodeModule:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   nodeModule:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;...&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;---&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wiki2025-mar_:diff:1.41:old-3206:rev-3207:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Geo</name></author>
	</entry>
	<entry>
		<id>https://marmits.com/w/index.php?title=Docker_volumes&amp;diff=3206&amp;oldid=prev</id>
		<title>Geo : Page créée avec « === Syntaxe === exemple `compose.yml` &lt;syntaxhighlight lang=&quot;yaml&quot;&gt; services:    # declaration a    volumes:     - nodeModule:/var/www/node_modules     - vendor:/var/www/vendor     - var:/var/www/var  # declaration b volumes:   vendor:   var:   nodeModule: ... &lt;/syntaxhighlight&gt;  Cette syntaxe &lt;/code&gt; concerne la gestion des &#039;&#039;&#039;volumes nommés&#039;&#039;&#039; dans Docker. Voici ce qu’il faut comprendre :  &lt;span id=&quot;intérêt-de-cette-syntaxe-volumes-nommés&quot;&gt;&lt;/span&gt; === Int... »</title>
		<link rel="alternate" type="text/html" href="https://marmits.com/w/index.php?title=Docker_volumes&amp;diff=3206&amp;oldid=prev"/>
		<updated>2025-05-30T12:53:37Z</updated>

		<summary type="html">&lt;p&gt;Page créée avec « === Syntaxe === exemple `compose.yml` &amp;lt;syntaxhighlight lang=&amp;quot;yaml&amp;quot;&amp;gt; services:    # declaration a    volumes:     - nodeModule:/var/www/node_modules     - vendor:/var/www/vendor     - var:/var/www/var  # declaration b volumes:   vendor:   var:   nodeModule: ... &amp;lt;/syntaxhighlight&amp;gt;  Cette syntaxe &amp;lt;/code&amp;gt; concerne la gestion des &amp;#039;&amp;#039;&amp;#039;volumes nommés&amp;#039;&amp;#039;&amp;#039; dans Docker. Voici ce qu’il faut comprendre :  &amp;lt;span id=&amp;quot;intérêt-de-cette-syntaxe-volumes-nommés&amp;quot;&amp;gt;&amp;lt;/span&amp;gt; === Int... »&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nouvelle page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=== Syntaxe ===&lt;br /&gt;
exemple `compose.yml`&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;yaml&amp;quot;&amp;gt;&lt;br /&gt;
services:&lt;br /&gt;
   # declaration a&lt;br /&gt;
   volumes:&lt;br /&gt;
    - nodeModule:/var/www/node_modules&lt;br /&gt;
    - vendor:/var/www/vendor&lt;br /&gt;
    - var:/var/www/var&lt;br /&gt;
&lt;br /&gt;
# declaration b&lt;br /&gt;
volumes:&lt;br /&gt;
  vendor:&lt;br /&gt;
  var:&lt;br /&gt;
  nodeModule:&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Cette syntaxe &amp;lt;/code&amp;gt; concerne la gestion des &amp;#039;&amp;#039;&amp;#039;volumes nommés&amp;#039;&amp;#039;&amp;#039; dans Docker. Voici ce qu’il faut comprendre :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;intérêt-de-cette-syntaxe-volumes-nommés&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
=== Intérêt de cette syntaxe (volumes nommés) : ===&lt;br /&gt;
&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;Persistance des données&amp;#039;&amp;#039;&amp;#039; : Les volumes nommés (&amp;lt;code&amp;gt;vendor&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;var&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;nodeModule&amp;lt;/code&amp;gt;) permettent de conserver les données même après la suppression du conteneur.&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;Partage entre conteneurs&amp;#039;&amp;#039;&amp;#039; : Ces volumes peuvent être partagés entre plusieurs services (utile par exemple pour partager des dépendances comme &amp;lt;code&amp;gt;node_modules&amp;lt;/code&amp;gt; ou &amp;lt;code&amp;gt;vendor&amp;lt;/code&amp;gt; entre plusieurs conteneurs).&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;Performances&amp;#039;&amp;#039;&amp;#039; : Sur certains systèmes (comme macOS/Windows avec Docker Desktop), monter des volumes pour des dossiers comme &amp;lt;code&amp;gt;node_modules&amp;lt;/code&amp;gt; ou &amp;lt;code&amp;gt;vendor&amp;lt;/code&amp;gt; améliore les performances (évite les problèmes de synchronisation de fichiers avec les mounts bind classiques).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;que-se-passe-t-il-si-vous-supprimez-la-partie-sous-declaration-b&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
=== Que se passe-t-il si vous supprimez la partie sous &amp;lt;code&amp;gt;# declaration b&amp;lt;/code&amp;gt; ? ===&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Les volumes nommés ne seront pas créés&amp;#039;&amp;#039;&amp;#039; : Docker essaiera de monter les volumes (&amp;lt;code&amp;gt;nodeModule&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;vendor&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;var&amp;lt;/code&amp;gt;), mais comme ils ne sont pas déclarés dans la section &amp;lt;code&amp;gt;volumes:&amp;lt;/code&amp;gt; racine, Docker les traitera comme des &amp;#039;&amp;#039;&amp;#039;montages anonymes&amp;#039;&amp;#039;&amp;#039; (volumes temporaires avec un nom généré aléatoirement).&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Comportement différent au redémarrage&amp;#039;&amp;#039;&amp;#039; :&lt;br /&gt;
* Avec la déclaration : Les données persistent et sont réutilisées.&lt;br /&gt;
* Sans la déclaration : Un nouveau volume anonyme est créé à chaque démarrage, et les données précédentes sont perdues (sauf si Docker réutilise un volume anonyme existant, mais ce n’est pas garanti).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;exemple-concret&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
=== Exemple concret : ===&lt;br /&gt;
&lt;br /&gt;
Si vous avez ceci :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;yaml&amp;quot;&amp;gt;services:&lt;br /&gt;
 app:&lt;br /&gt;
 volumes:&lt;br /&gt;
 - nodeModule:/var/www/node_modules&lt;br /&gt;
&lt;br /&gt;
# Sans cette partie :&lt;br /&gt;
# volumes:&lt;br /&gt;
# nodeModule:&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
* Au premier &amp;lt;code&amp;gt;docker-compose up&amp;lt;/code&amp;gt;, Docker créera un volume anonyme pour &amp;lt;code&amp;gt;nodeModule&amp;lt;/code&amp;gt;.&lt;br /&gt;
* Si vous supprimez le conteneur et relancez, un &amp;#039;&amp;#039;&amp;#039;nouveau&amp;#039;&amp;#039;&amp;#039; volume anonyme sera créé, et vos &amp;lt;code&amp;gt;node_modules&amp;lt;/code&amp;gt; précédents seront perdus.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;conclusion&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
=== Conclusion : ===&lt;br /&gt;
&lt;br /&gt;
La section &amp;lt;code&amp;gt;volumes:&amp;lt;/code&amp;gt; racine est &amp;#039;&amp;#039;&amp;#039;nécessaire&amp;#039;&amp;#039;&amp;#039; si vous voulez : - Des volumes persistants et réutilisables. - Pouvoir gérer ces volumes via &amp;lt;code&amp;gt;docker volume ls&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;docker volume inspect&amp;lt;/code&amp;gt;. - Éviter la duplication de données ou les pertes entre les redémarrages.&lt;br /&gt;
&lt;br /&gt;
Vous pouvez aussi utiliser des &amp;#039;&amp;#039;&amp;#039;montages bind&amp;#039;&amp;#039;&amp;#039; (chemins absolus) si vous n’avez pas besoin de volumes Docker managés :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;yaml&amp;quot;&amp;gt;services:&lt;br /&gt;
 app:&lt;br /&gt;
 volumes:&lt;br /&gt;
 - ./node_modules:/var/www/node_modules # Montage bind (dossier local)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Mais cela peut causer des problèmes de performances/permissions dans certains cas.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Catégorie:Docker]]&lt;/div&gt;</summary>
		<author><name>Geo</name></author>
	</entry>
</feed>