{"id":1277,"date":"2024-07-23T12:18:26","date_gmt":"2024-07-23T12:18:26","guid":{"rendered":"https:\/\/dockerpros.com\/?post_type=glossary&#038;p=1277"},"modified":"2024-07-23T12:22:19","modified_gmt":"2024-07-23T12:22:19","slug":"volumes-externes-docker-compose","status":"publish","type":"glossary","link":"https:\/\/dockerpros.com\/fr\/wiki\/docker-compose-external-volumes\/","title":{"rendered":"Docker Compose External Volumes"},"content":{"rendered":"<h1>Comprendre les volumes externes de Docker Compose<\/h1>\n<p><span class=\"glossaryai-tooltip glossary-term-654\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/docker-compose\/\" target=\"_blank\">Docker Compose<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">Docker Compose is a tool for defining and running multi-container Docker applications using a YAML file. It simplifies deployment, configuration, and orchestration of services, enhancing development efficiency.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/docker-compose\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> is a powerful tool that simplifies the definition and management of multi-container Docker applications. One of its advanced features is the use of external volumes, which allows developers to share and persist data between containers while maintaining the flexibility to manage storage separately. In this article, we will explore what <span class=\"glossaryai-tooltip glossary-term-654\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/docker-compose\/\" target=\"_blank\">Docker Compose<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">Docker Compose is a tool for defining and running multi-container Docker applications using a YAML file. It simplifies deployment, configuration, and orchestration of services, enhancing development efficiency.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/docker-compose\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> external volumes are, how they differ from internal volumes, their practical uses, and best practices for implementing them in your projects.<\/p>\n<h2>Qu'est-ce que les volumes Docker ?<\/h2>\n<p>Before delving into external volumes, it\u2019s essential to understand the concept of Docker volumes in general. A <span class=\"glossaryai-tooltip glossary-term-701\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/docker-volume\/\" target=\"_blank\">Volume Docker<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">Docker Volumes are essential for persistent data storage in containerized applications. They enable data separation from the container lifecycle, allowing for easier data management and backup.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/docker-volume\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> is a persistent data storage mechanism that allows you to store data generated and used by Docker containers. Unlike the <span class=\"glossaryai-tooltip glossary-term-650\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/container\/\" target=\"_blank\">conteneur<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">Containers are lightweight, portable units that encapsulate software and its dependencies, enabling consistent execution across different environments. They leverage OS-level virtualization for efficiency.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/container\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> filesystem, which is ephemeral and tied to the lifecycle of the <span class=\"glossaryai-tooltip glossary-term-650\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/container\/\" target=\"_blank\">conteneur<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">Containers are lightweight, portable units that encapsulate software and its dependencies, enabling consistent execution across different environments. They leverage OS-level virtualization for efficiency.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/container\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span>, volumes exist outside of the <span class=\"glossaryai-tooltip glossary-term-650\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/container\/\" target=\"_blank\">conteneur<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">Containers are lightweight, portable units that encapsulate software and its dependencies, enabling consistent execution across different environments. They leverage OS-level virtualization for efficiency.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/container\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> and can be shared across multiple containers.<\/p>\n<p>The benefits of using Docker volumes include:<\/p>\n<ol>\n<li><strong>Persistance des donn\u00e9es<\/strong>: Volumes persist even if the <span class=\"glossaryai-tooltip glossary-term-650\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/container\/\" target=\"_blank\">conteneur<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">Containers are lightweight, portable units that encapsulate software and its dependencies, enabling consistent execution across different environments. They leverage OS-level virtualization for efficiency.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/container\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> is stopped or removed.<\/li>\n<li><strong>Performance<\/strong>: Les volumes sont optimis\u00e9s pour les performances et peuvent \u00eatre g\u00e9r\u00e9s par le <span class=\"glossaryai-tooltip glossary-term-666\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/docker-engine\/\" target=\"_blank\">Moteur Docker<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">Docker Engine est une technologie de conteneurisation open source qui permet aux d\u00e9veloppeurs de cr\u00e9er, d\u00e9ployer et g\u00e9rer des applications au sein d'environnements l\u00e9gers et isol\u00e9s appel\u00e9s conteneurs.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/docker-engine\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span>.<\/li>\n<li><strong>Easy Sharing<\/strong>: Les volumes peuvent \u00eatre partag\u00e9s entre plusieurs conteneurs, facilitant ainsi l'\u00e9change de donn\u00e9es.<\/li>\n<li><strong>Sauvegarde et Restauration<\/strong>: Volumes can be easily backed up and restored, enabling data management across different environments.<\/li>\n<\/ol>\n<h2>Volumes internes vs. volumes externes\n\nLes volumes internes sont des volumes qui sont cr\u00e9\u00e9s et g\u00e9r\u00e9s par Docker. Ils sont stock\u00e9s dans un r\u00e9pertoire sp\u00e9cifique sur l'h\u00f4te Docker et sont g\u00e9r\u00e9s par le pilote de volume par d\u00e9faut de Docker. Les volumes internes sont pratiques car ils permettent de persister les donn\u00e9es m\u00eame si le conteneur est supprim\u00e9. Ils sont \u00e9galement faciles \u00e0 utiliser car Docker s'occupe de la gestion du stockage pour vous.\n\nLes volumes externes, en revanche, sont des volumes qui sont cr\u00e9\u00e9s et g\u00e9r\u00e9s en dehors de Docker. Ils peuvent \u00eatre des r\u00e9pertoires sur l'h\u00f4te Docker ou des partages de fichiers r\u00e9seau. Les volumes externes sont utiles lorsque vous avez besoin de partager des donn\u00e9es entre plusieurs conteneurs ou lorsque vous voulez utiliser un syst\u00e8me de stockage sp\u00e9cifique qui n'est pas pris en charge par Docker.\n\nPour cr\u00e9er un volume interne, vous pouvez utiliser la commande `docker volume create`. Par exemple, pour cr\u00e9er un volume nomm\u00e9 \"my-volume\", vous pouvez ex\u00e9cuter la commande suivante :\n\n```\ndocker volume create my-volume\n```\n\nPour cr\u00e9er un volume externe, vous pouvez utiliser l'option `-v` ou `--volume` lors de la cr\u00e9ation d'un conteneur. Par exemple, pour cr\u00e9er un conteneur qui utilise un r\u00e9pertoire sur l'h\u00f4te Docker comme volume, vous pouvez ex\u00e9cuter la commande suivante :\n\n```\ndocker run -v \/path\/on\/host:\/path\/in\/container my-image\n```\n\nDans cet exemple, `\/path\/on\/host` est le chemin du r\u00e9pertoire sur l'h\u00f4te Docker et `\/path\/in\/container` est le chemin du r\u00e9pertoire dans le conteneur.\n\nIl est important de noter que les volumes internes et externes ont des caract\u00e9ristiques diff\u00e9rentes en termes de performance et de s\u00e9curit\u00e9. Les volumes internes sont g\u00e9n\u00e9ralement plus rapides car ils sont g\u00e9r\u00e9s par Docker, mais ils peuvent \u00eatre moins s\u00e9curis\u00e9s car ils sont stock\u00e9s sur l'h\u00f4te Docker. Les volumes externes, en revanche, peuvent \u00eatre plus lents car ils d\u00e9pendent du syst\u00e8me de stockage externe, mais ils peuvent \u00eatre plus s\u00e9curis\u00e9s car ils sont g\u00e9r\u00e9s en dehors de Docker.\n\nEn conclusion, le choix entre les volumes internes et externes d\u00e9pend de vos besoins sp\u00e9cifiques. Si vous avez besoin de persister des donn\u00e9es et que vous voulez que Docker s'occupe de la gestion du stockage, les volumes internes sont une bonne option. Si vous avez besoin de partager des donn\u00e9es entre plusieurs conteneurs ou si vous voulez utiliser un syst\u00e8me de stockage sp\u00e9cifique, les volumes externes sont une meilleure option.<\/h2>\n<p>When we talk about Docker volumes in <span class=\"glossaryai-tooltip glossary-term-654\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/docker-compose\/\" target=\"_blank\">Docker Compose<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">Docker Compose is a tool for defining and running multi-container Docker applications using a YAML file. It simplifies deployment, configuration, and orchestration of services, enhancing development efficiency.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/docker-compose\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span>, we can categorize them into two main types: internal volumes and external volumes.<\/p>\n<h3>Internal Volumes<\/h3>\n<p>Internal volumes are created and managed by <span class=\"glossaryai-tooltip glossary-term-654\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/docker-compose\/\" target=\"_blank\">Docker Compose<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">Docker Compose is a tool for defining and running multi-container Docker applications using a YAML file. It simplifies deployment, configuration, and orchestration of services, enhancing development efficiency.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/docker-compose\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> within the context of a specific application. When you define a <span class=\"glossaryai-tooltip glossary-term-660\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/volume\/\" target=\"_blank\">volume<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">Volume is a quantitative measure of three-dimensional space occupied by an object or substance, typically expressed in cubic units. It is fundamental in fields such as physics, chemistry, and engineering.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/volume\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> dans ton <code>docker-compose.yml<\/code> file without specifying an existing <span class=\"glossaryai-tooltip glossary-term-660\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/volume\/\" target=\"_blank\">volume<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">Volume is a quantitative measure of three-dimensional space occupied by an object or substance, typically expressed in cubic units. It is fundamental in fields such as physics, chemistry, and engineering.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/volume\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span>, <span class=\"glossaryai-tooltip glossary-term-654\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/docker-compose\/\" target=\"_blank\">Docker Compose<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">Docker Compose is a tool for defining and running multi-container Docker applications using a YAML file. It simplifies deployment, configuration, and orchestration of services, enhancing development efficiency.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/docker-compose\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> will create a new <span class=\"glossaryai-tooltip glossary-term-660\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/volume\/\" target=\"_blank\">volume<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">Volume is a quantitative measure of three-dimensional space occupied by an object or substance, typically expressed in cubic units. It is fundamental in fields such as physics, chemistry, and engineering.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/volume\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> automatically. These volumes are linked to a particular <span class=\"glossaryai-tooltip glossary-term-681\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/service\/\" target=\"_blank\">service<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">Le service fait r\u00e9f\u00e9rence \u00e0 l'acte de fournir une assistance ou un soutien pour r\u00e9pondre \u00e0 des besoins ou des exigences sp\u00e9cifiques. Dans divers domaines, il englobe le service client, le support technique et les services professionnels, en mettant l'accent sur l'efficacit\u00e9 et la satisfaction de l'utilisateur.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/service\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> d\u00e9finis dans votre fichier Compose. Cependant, leur port\u00e9e est limit\u00e9e au projet, et si vous supprimez le projet, les volumes peuvent \u00e9galement \u00eatre supprim\u00e9s.<\/p>\n<h3>External Volumes<\/h3>\n<p>External volumes, on the other hand, are pre-existing volumes that are managed outside the context of your <span class=\"glossaryai-tooltip glossary-term-654\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/docker-compose\/\" target=\"_blank\">Docker Compose<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">Docker Compose is a tool for defining and running multi-container Docker applications using a YAML file. It simplifies deployment, configuration, and orchestration of services, enhancing development efficiency.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/docker-compose\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> application. You can create these volumes independently using Docker CLI commands or by defining them in a different Compose file. When you declare an external <span class=\"glossaryai-tooltip glossary-term-660\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/volume\/\" target=\"_blank\">volume<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">Volume is a quantitative measure of three-dimensional space occupied by an object or substance, typically expressed in cubic units. It is fundamental in fields such as physics, chemistry, and engineering.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/volume\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> dans ton <code>docker-compose.yml<\/code> file, you can reference it without <span class=\"glossaryai-tooltip glossary-term-654\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/docker-compose\/\" target=\"_blank\">Docker Compose<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">Docker Compose is a tool for defining and running multi-container Docker applications using a YAML file. It simplifies deployment, configuration, and orchestration of services, enhancing development efficiency.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/docker-compose\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> managing its lifecycle. This feature is particularly useful when you want to share a <span class=\"glossaryai-tooltip glossary-term-660\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/volume\/\" target=\"_blank\">volume<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">Volume is a quantitative measure of three-dimensional space occupied by an object or substance, typically expressed in cubic units. It is fundamental in fields such as physics, chemistry, and engineering.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/volume\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> across multiple projects or when you need to persist data beyond the lifespan of a single application.<\/p>\n<h2>D\u00e9finition des volumes externes dans Docker Compose<\/h2>\n<p>To define an external <span class=\"glossaryai-tooltip glossary-term-660\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/volume\/\" target=\"_blank\">volume<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">Volume is a quantitative measure of three-dimensional space occupied by an object or substance, typically expressed in cubic units. It is fundamental in fields such as physics, chemistry, and engineering.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/volume\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> dans ton <span class=\"glossaryai-tooltip glossary-term-689\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/docker-compose-file\/\" target=\"_blank\">fichier Docker Compose<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">Un fichier Docker Compose est un fichier de configuration YAML qui d\u00e9finit les services, les r\u00e9seaux et les volumes pour les applications Docker multi-conteneurs. Il simplifie le d\u00e9ploiement et la gestion, am\u00e9liorant ainsi l'efficacit\u00e9.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/docker-compose-file\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span>, you\u2019ll typically use the <code>volumes<\/code> key under the <span class=\"glossaryai-tooltip glossary-term-681\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/service\/\" target=\"_blank\">service<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">Le service fait r\u00e9f\u00e9rence \u00e0 l'acte de fournir une assistance ou un soutien pour r\u00e9pondre \u00e0 des besoins ou des exigences sp\u00e9cifiques. Dans divers domaines, il englobe le service client, le support technique et les services professionnels, en mettant l'accent sur l'efficacit\u00e9 et la satisfaction de l'utilisateur.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/service\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> that needs access to the <span class=\"glossaryai-tooltip glossary-term-660\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/volume\/\" target=\"_blank\">volume<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">Volume is a quantitative measure of three-dimensional space occupied by an object or substance, typically expressed in cubic units. It is fundamental in fields such as physics, chemistry, and engineering.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/volume\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span>. The syntax for declaring an external <span class=\"glossaryai-tooltip glossary-term-660\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/volume\/\" target=\"_blank\">volume<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">Volume is a quantitative measure of three-dimensional space occupied by an object or substance, typically expressed in cubic units. It is fundamental in fields such as physics, chemistry, and engineering.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/volume\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> looks like this:<\/p>\n<pre><code class=\"language-yaml\">version: '3.8'\n\nservices:\n  application:\n    <span class=\"glossaryai-tooltip glossary-term-651\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/image\/\" target=\"_blank\">image<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">Une image est une repr\u00e9sentation visuelle d'un objet ou d'une sc\u00e8ne, g\u00e9n\u00e9ralement compos\u00e9e de pixels dans les formats num\u00e9riques. Elle peut transmettre des informations, susciter des \u00e9motions et faciliter la communication \u00e0 travers diff\u00e9rents m\u00e9dias.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/image\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span>: myapp:latest\n    volumes:\n      - mon_volume_externe:\/data\n\nvolumes:\n  mon_volume_externe:\n    external: true<\/code><\/pre>\n<p>Dans cet exemple, <code>mon_volume_externe<\/code> is marked as external. <span class=\"glossaryai-tooltip glossary-term-654\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/docker-compose\/\" target=\"_blank\">Docker Compose<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">Docker Compose is a tool for defining and running multi-container Docker applications using a YAML file. It simplifies deployment, configuration, and orchestration of services, enhancing development efficiency.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/docker-compose\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> will not attempt to create it; instead, it expects that this <span class=\"glossaryai-tooltip glossary-term-660\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/volume\/\" target=\"_blank\">volume<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">Volume is a quantitative measure of three-dimensional space occupied by an object or substance, typically expressed in cubic units. It is fundamental in fields such as physics, chemistry, and engineering.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/volume\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> already exists.<\/p>\n<h2>Comment cr\u00e9er des volumes externes\n\nVolumes externes are a way to add storage to your cluster. They are similar to volumes, but they are created independently of any pod. This means that they can be used by multiple pods at the same time, and they can be deleted without affecting the pods that are using them.\n\nTo create an external volume, you can use the following command:\n\n```\nkubectl create volume  --size= --type=\n```\n\nWhere:\n\n- `` is the name of the volume.\n- `` is the size of the volume in gigabytes.\n- `` is the type of volume. The available types are `gp2`, `io1`, and `standard`.\n\nOnce you have created the volume, you can attach it to a pod using the following command:\n\n```\nkubectl attach volume  \n```\n\nWhere:\n\n- `` is the name of the volume.\n- `` is the name of the pod.\n\nYou can also detach a volume from a pod using the following command:\n\n```\nkubectl detach volume  \n```\n\nWhere:\n\n- `` is the name of the volume.\n- `` is the name of the pod.\n\nVolumes externes sont un moyen d'ajouter du stockage \u00e0 votre cluster. Ils sont similaires aux volumes, mais ils sont cr\u00e9\u00e9s ind\u00e9pendamment de tout pod. Cela signifie qu'ils peuvent \u00eatre utilis\u00e9s par plusieurs pods en m\u00eame temps, et qu'ils peuvent \u00eatre supprim\u00e9s sans affecter les pods qui les utilisent.\n\nPour cr\u00e9er un volume externe, vous pouvez utiliser la commande suivante :\n\n```\nkubectl create volume  --size= --type=\n```\n\nO\u00f9 :\n\n- `` est le nom du volume.\n- `` est la taille du volume en gigaoctets.\n- `` est le type de volume. Les types disponibles sont `gp2`, `io1` et `standard`.\n\nUne fois que vous avez cr\u00e9\u00e9 le volume, vous pouvez l'attacher \u00e0 un pod en utilisant la commande suivante :\n\n```\nkubectl attach volume  \n```\n\nO\u00f9 :\n\n- `` est le nom du volume.\n- `` est le nom du pod.\n\nVous pouvez \u00e9galement d\u00e9tacher un volume d'un pod en utilisant la commande suivante :\n\n```\nkubectl detach volume  \n```\n\nO\u00f9 :\n\n- `` est le nom du volume.\n- `` est le nom du pod.<\/h2>\n<p>Vous pouvez cr\u00e9er des volumes externes en utilisant l'interface de ligne de commande Docker. Cela peut \u00eatre fait avec la commande suivante :<\/p>\n<pre><code class=\"language-bash\"><span class=\"glossaryai-tooltip glossary-term-1168\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/docker-volume-create\/\" target=\"_blank\">docker volume create<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">La commande `docker volume create` permet aux utilisateurs de cr\u00e9er un stockage persistant pouvant \u00eatre partag\u00e9 entre les conteneurs. Elle d\u00e9couple les donn\u00e9es du cycle de vie des conteneurs, garantissant ainsi l'int\u00e9grit\u00e9 et la flexibilit\u00e9 des donn\u00e9es.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/docker-volume-create\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> mon_volume_externe<\/code><\/pre>\n<p>Cette commande cr\u00e9e un <span class=\"glossaryai-tooltip glossary-term-660\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/volume\/\" target=\"_blank\">volume<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">Volume is a quantitative measure of three-dimensional space occupied by an object or substance, typically expressed in cubic units. It is fundamental in fields such as physics, chemistry, and engineering.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/volume\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> nomm\u00e9 <code>mon_volume_externe<\/code> that can be used in any <span class=\"glossaryai-tooltip glossary-term-654\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/docker-compose\/\" target=\"_blank\">Docker Compose<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">Docker Compose is a tool for defining and running multi-container Docker applications using a YAML file. It simplifies deployment, configuration, and orchestration of services, enhancing development efficiency.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/docker-compose\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> application or any standalone <span class=\"glossaryai-tooltip glossary-term-650\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/container\/\" target=\"_blank\">conteneur<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">Containers are lightweight, portable units that encapsulate software and its dependencies, enabling consistent execution across different environments. They leverage OS-level virtualization for efficiency.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/container\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span>.<\/p>\n<h3>V\u00e9rification des volumes existants<\/h3>\n<p>To view existing volumes in your system, you can use the command:<\/p>\n<pre><code class=\"language-bash\"><span class=\"glossaryai-tooltip glossary-term-1171\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/docker-volume-ls\/\" target=\"_blank\">docker volume ls<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">The `docker volume ls` command lists all Docker volumes on the host. This command helps users to manage persistent data storage efficiently, providing essential details like volume name and driver.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/docker-volume-ls\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span><\/code><\/pre>\n<p>This command lists all the volumes, allowing you to verify if your external <span class=\"glossaryai-tooltip glossary-term-660\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/volume\/\" target=\"_blank\">volume<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">Volume is a quantitative measure of three-dimensional space occupied by an object or substance, typically expressed in cubic units. It is fundamental in fields such as physics, chemistry, and engineering.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/volume\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> has been created successfully.<\/p>\n<h2>Cas d'utilisation des volumes externes<\/h2>\n<p>External volumes serve various use cases in Docker applications. Below are some common scenarios where external volumes prove beneficial:<\/p>\n<h3>1. Donn\u00e9es partag\u00e9es entre plusieurs applications<\/h3>\n<p>When developing microservices or multi-tier architectures, it may be necessary to share data between different applications. External volumes allow you to define a single data source that multiple services can access without duplicating data. For instance, a user-uploaded files <span class=\"glossaryai-tooltip glossary-term-681\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/service\/\" target=\"_blank\">service<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">Le service fait r\u00e9f\u00e9rence \u00e0 l'acte de fournir une assistance ou un soutien pour r\u00e9pondre \u00e0 des besoins ou des exigences sp\u00e9cifiques. Dans divers domaines, il englobe le service client, le support technique et les services professionnels, en mettant l'accent sur l'efficacit\u00e9 et la satisfaction de l'utilisateur.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/service\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> can store files in an external <span class=\"glossaryai-tooltip glossary-term-660\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/volume\/\" target=\"_blank\">volume<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">Volume is a quantitative measure of three-dimensional space occupied by an object or substance, typically expressed in cubic units. It is fundamental in fields such as physics, chemistry, and engineering.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/volume\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> that is shared with a web application or an analytics <span class=\"glossaryai-tooltip glossary-term-681\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/service\/\" target=\"_blank\">service<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">Le service fait r\u00e9f\u00e9rence \u00e0 l'acte de fournir une assistance ou un soutien pour r\u00e9pondre \u00e0 des besoins ou des exigences sp\u00e9cifiques. Dans divers domaines, il englobe le service client, le support technique et les services professionnels, en mettant l'accent sur l'efficacit\u00e9 et la satisfaction de l'utilisateur.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/service\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span>.<\/p>\n<h3>2. Persistance de la base de donn\u00e9es<\/h3>\n<p>In many applications, databases such as MySQL, PostgreSQL, or MongoDB require persistent storage. By using an external <span class=\"glossaryai-tooltip glossary-term-660\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/volume\/\" target=\"_blank\">volume<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">Volume is a quantitative measure of three-dimensional space occupied by an object or substance, typically expressed in cubic units. It is fundamental in fields such as physics, chemistry, and engineering.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/volume\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span>, you can ensure that your database data is preserved even when the database <span class=\"glossaryai-tooltip glossary-term-650\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/container\/\" target=\"_blank\">conteneur<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">Containers are lightweight, portable units that encapsulate software and its dependencies, enabling consistent execution across different environments. They leverage OS-level virtualization for efficiency.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/container\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> is restarted or removed. This setup is critical in production environments where data integrity is paramount.<\/p>\n<h3>3. Coh\u00e9rence des environnements<\/h3>\n<p>When working in development, testing, and production environments, external volumes can help ensure that the same data and file structures are used across these environments. By using external volumes, you can maintain consistency in the data your applications rely on, reducing the risk of environment-related issues.<\/p>\n<h3>4. Sauvegarde et migration des donn\u00e9es<\/h3>\n<p>External volumes can simplify backup and migration processes. For instance, if you need to migrate an application to a different host or cloud provider, you can manage and back up the external <span class=\"glossaryai-tooltip glossary-term-660\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/volume\/\" target=\"_blank\">volume<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">Volume is a quantitative measure of three-dimensional space occupied by an object or substance, typically expressed in cubic units. It is fundamental in fields such as physics, chemistry, and engineering.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/volume\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> independently. This capability allows you to create snapshots or replicate the <span class=\"glossaryai-tooltip glossary-term-660\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/volume\/\" target=\"_blank\">volume<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">Volume is a quantitative measure of three-dimensional space occupied by an object or substance, typically expressed in cubic units. It is fundamental in fields such as physics, chemistry, and engineering.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/volume\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> without being tied to the container\u2019s lifecycle.<\/p>\n<h2>Gestion des volumes externes<\/h2>\n<p>La gestion des volumes externes implique diverses t\u00e2ches telles que l'inspection, la suppression et la sauvegarde des volumes. Voici quelques commandes qui peuvent aider \u00e0 g\u00e9rer les volumes externes :<\/p>\n<h3>Inspecting Volumes<\/h3>\n<p>To inspect the details of an external <span class=\"glossaryai-tooltip glossary-term-660\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/volume\/\" target=\"_blank\">volume<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">Volume is a quantitative measure of three-dimensional space occupied by an object or substance, typically expressed in cubic units. It is fundamental in fields such as physics, chemistry, and engineering.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/volume\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span>, such as its mount point and usage, you can use:<\/p>\n<pre><code class=\"language-bash\"><span class=\"glossaryai-tooltip glossary-term-1169\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/docker-volume-inspect\/\" target=\"_blank\">docker volume inspect<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">Docker Volume Inspect est une commande utilis\u00e9e pour r\u00e9cup\u00e9rer des informations d\u00e9taill\u00e9es sur des volumes sp\u00e9cifiques dans un environnement Docker. Elle fournit des m\u00e9tadonn\u00e9es telles que le point de montage, le pilote et les options, facilitant la gestion efficace des volumes.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/docker-volume-inspect\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> mon_volume_externe<\/code><\/pre>\n<h3>Suppression de volumes<\/h3>\n<p>To remove a <span class=\"glossaryai-tooltip glossary-term-660\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/volume\/\" target=\"_blank\">volume<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">Volume is a quantitative measure of three-dimensional space occupied by an object or substance, typically expressed in cubic units. It is fundamental in fields such as physics, chemistry, and engineering.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/volume\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span>, first ensure that no containers are using it. You can remove the <span class=\"glossaryai-tooltip glossary-term-660\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/volume\/\" target=\"_blank\">volume<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">Volume is a quantitative measure of three-dimensional space occupied by an object or substance, typically expressed in cubic units. It is fundamental in fields such as physics, chemistry, and engineering.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/volume\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> with the following command:<\/p>\n<pre><code class=\"language-bash\"><span class=\"glossaryai-tooltip glossary-term-1170\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/docker-volume-rm\/\" target=\"_blank\">docker volume rm<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">Docker Volume RM est une commande utilis\u00e9e pour supprimer un ou plusieurs volumes Docker inutilis\u00e9s. Elle aide \u00e0 g\u00e9rer l'espace disque en supprimant les volumes non associ\u00e9s \u00e0 des conteneurs, optimisant ainsi l'efficacit\u00e9 du stockage.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/docker-volume-rm\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> mon_volume_externe<\/code><\/pre>\n<h3>Sauvegarde des volumes<\/h3>\n<p>To back up data from an external <span class=\"glossaryai-tooltip glossary-term-660\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/volume\/\" target=\"_blank\">volume<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">Volume is a quantitative measure of three-dimensional space occupied by an object or substance, typically expressed in cubic units. It is fundamental in fields such as physics, chemistry, and engineering.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/volume\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span>, you can create a temporary <span class=\"glossaryai-tooltip glossary-term-650\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/container\/\" target=\"_blank\">conteneur<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">Containers are lightweight, portable units that encapsulate software and its dependencies, enabling consistent execution across different environments. They leverage OS-level virtualization for efficiency.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/container\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> that mounts the <span class=\"glossaryai-tooltip glossary-term-660\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/volume\/\" target=\"_blank\">volume<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">Volume is a quantitative measure of three-dimensional space occupied by an object or substance, typically expressed in cubic units. It is fundamental in fields such as physics, chemistry, and engineering.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/volume\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> et ensuite <span class=\"glossaryai-tooltip glossary-term-673\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/copy\/\" target=\"_blank\">copie<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">COPY is a command in computer programming and data management that facilitates the duplication of files or data from one location to another, ensuring data integrity and accessibility.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/copy\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> the files to a backup location. For example:<\/p>\n<pre><code class=\"language-bash\">docker run --rm -v my_external_volume:\/data -v $(pwd):\/backup alpine sh -c \"cp -a \/data\/. \/backup\"<\/code><\/pre>\n<p>This command will <span class=\"glossaryai-tooltip glossary-term-673\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/copy\/\" target=\"_blank\">copie<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">COPY is a command in computer programming and data management that facilitates the duplication of files or data from one location to another, ensuring data integrity and accessibility.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/copy\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> the contents of <code>mon_volume_externe<\/code> vers un r\u00e9pertoire de sauvegarde local.<\/p>\n<h2>Meilleures pratiques pour l'utilisation de volumes externes\n\nL'utilisation de volumes externes est une pratique courante dans de nombreux domaines, que ce soit pour le stockage de donn\u00e9es, la sauvegarde de fichiers ou l'extension de la capacit\u00e9 de stockage d'un syst\u00e8me. Cependant, il est important de suivre certaines meilleures pratiques pour garantir une utilisation efficace et s\u00e9curis\u00e9e de ces volumes. Voici quelques recommandations \u00e0 prendre en compte :\n\n1. Choisissez le bon type de volume externe : Il existe diff\u00e9rents types de volumes externes, tels que les disques durs externes, les SSD externes, les cl\u00e9s USB, etc. Assurez-vous de choisir le type qui convient le mieux \u00e0 vos besoins en termes de capacit\u00e9, de vitesse et de portabilit\u00e9.\n\n2. Sauvegardez r\u00e9guli\u00e8rement vos donn\u00e9es : Les volumes externes sont souvent utilis\u00e9s comme dispositifs de sauvegarde. Il est essentiel de mettre en place une strat\u00e9gie de sauvegarde r\u00e9guli\u00e8re pour \u00e9viter la perte de donn\u00e9es en cas de d\u00e9faillance du volume ou du syst\u00e8me.\n\n3. Prot\u00e9gez vos volumes avec des mots de passe : Si vous stockez des donn\u00e9es sensibles sur un volume externe, il est recommand\u00e9 de le prot\u00e9ger avec un mot de passe. Cela emp\u00eachera tout acc\u00e8s non autoris\u00e9 en cas de perte ou de vol du volume.\n\n4. \u00c9jectez correctement les volumes : Avant de d\u00e9brancher un volume externe, assurez-vous de l'\u00e9jecter correctement \u00e0 partir de votre syst\u00e8me d'exploitation. Cela permet de s'assurer que toutes les op\u00e9rations d'\u00e9criture sont termin\u00e9es et que les donn\u00e9es ne sont pas corrompues.\n\n5. \u00c9vitez les temp\u00e9ratures extr\u00eames : Les volumes externes sont sensibles aux temp\u00e9ratures extr\u00eames. \u00c9vitez de les exposer \u00e0 des temp\u00e9ratures trop \u00e9lev\u00e9es ou trop basses, car cela pourrait endommager les composants internes et entra\u00eener une perte de donn\u00e9es.\n\n6. Mettez \u00e0 jour r\u00e9guli\u00e8rement les pilotes : Les pilotes des volumes externes doivent \u00eatre mis \u00e0 jour r\u00e9guli\u00e8rement pour garantir leur compatibilit\u00e9 avec les derniers syst\u00e8mes d'exploitation et pour b\u00e9n\u00e9ficier des derni\u00e8res am\u00e9liorations de performance et de s\u00e9curit\u00e9.\n\n7. \u00c9vitez les chocs physiques : Les volumes externes sont fragiles et peuvent \u00eatre endommag\u00e9s par des chocs physiques. Manipulez-les avec pr\u00e9caution et \u00e9vitez de les laisser tomber ou de les soumettre \u00e0 des vibrations excessives.\n\n8. Utilisez des logiciels de chiffrement : Si vous stockez des donn\u00e9es sensibles sur un volume externe, envisagez d'utiliser des logiciels de chiffrement pour prot\u00e9ger vos informations. Cela garantira que m\u00eame si le volume tombe entre de mauvaises mains, les donn\u00e9es resteront inaccessibles.\n\n9. Nettoyez r\u00e9guli\u00e8rement les contacts : Les contacts des volumes externes peuvent s'encrasser avec le temps, ce qui peut entra\u00eener des probl\u00e8mes de connexion. Nettoyez r\u00e9guli\u00e8rement les contacts avec un chiffon doux et sec pour maintenir une connexion fiable.\n\n10. \u00c9vitez de remplir compl\u00e8tement le volume : Laissez toujours un espace libre sur votre volume externe. Un volume trop plein peut ralentir les performances et augmenter le risque de corruption des donn\u00e9es.\n\nEn suivant ces meilleures pratiques, vous pourrez tirer le meilleur parti de vos volumes externes tout en garantissant la s\u00e9curit\u00e9 et l'int\u00e9grit\u00e9 de vos donn\u00e9es.<\/h2>\n<p>Bien que les volumes externes offrent une grande flexibilit\u00e9, il existe des bonnes pratiques \u00e0 prendre en compte pour assurer une gestion et une utilisation efficaces :<\/p>\n<h3>1. Conventions de nommage claires<\/h3>\n<p>Adoptez une convention de nommage claire et coh\u00e9rente pour vos volumes afin d'\u00e9viter toute confusion. Utilisez des noms qui refl\u00e8tent leur objectif et l'application \u00e0 laquelle ils sont associ\u00e9s.<\/p>\n<h3>2. Utilisation du volume des documents<\/h3>\n<p>Always document the purpose and intended usage of external volumes, especially in larger teams or when working on open-source projects. This practice helps onboard new team members and maintains clarity.<\/p>\n<h3>3. Regular Backups<\/h3>\n<p>Implement a backup strategy for your external volumes, particularly for critical data such as databases. Regular backups can prevent data loss and facilitate disaster recovery.<\/p>\n<h3>4. Monitor Volume Usage<\/h3>\n<p>Monitoring the disk usage of your volumes can help identify potential issues before they become critical. Utilize Docker commands to check <span class=\"glossaryai-tooltip glossary-term-660\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/volume\/\" target=\"_blank\">volume<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">Volume is a quantitative measure of three-dimensional space occupied by an object or substance, typically expressed in cubic units. It is fundamental in fields such as physics, chemistry, and engineering.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/volume\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> sizes and ensure that you have sufficient disk space available.<\/p>\n<h3>5. Isoler les donn\u00e9es critiques<\/h3>\n<p>Lors de l'utilisation de volumes externes pour des donn\u00e9es sensibles, envisagez de les isoler sur des solutions de stockage d\u00e9di\u00e9es pour am\u00e9liorer la s\u00e9curit\u00e9 et les performances.<\/p>\n<h2>Conclusion<\/h2>\n<p><span class=\"glossaryai-tooltip glossary-term-654\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/docker-compose\/\" target=\"_blank\">Docker Compose<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">Docker Compose is a tool for defining and running multi-container Docker applications using a YAML file. It simplifies deployment, configuration, and orchestration of services, enhancing development efficiency.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/docker-compose\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> external volumes are a powerful feature that enhances data management and sharing capabilities among containers. By allowing developers to define volumes that exist independently of their applications, they provide flexibility and persistence that is essential in modern DevOps practices. Understanding how to effectively use these external volumes can help improve your development workflows, streamline data management, and ensure that your applications are resilient and maintainable.<\/p>\n<p>By following best practices for naming, documentation, backup, and monitoring, you can harness the full potential of <span class=\"glossaryai-tooltip glossary-term-654\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/docker-compose\/\" target=\"_blank\">Docker Compose<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">Docker Compose is a tool for defining and running multi-container Docker applications using a YAML file. It simplifies deployment, configuration, and orchestration of services, enhancing development efficiency.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/docker-compose\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> external volumes in your projects. As you become more familiar with these concepts, you\u2019ll find that external volumes can play a crucial role in building robust and scalable containerized applications.<\/p>","protected":false},"excerpt":{"rendered":"<p><span class=\"glossaryai-tooltip glossary-term-654\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/docker-compose\/\" target=\"_blank\">Docker Compose<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">Docker Compose is a tool for defining and running multi-container Docker applications using a YAML file. It simplifies deployment, configuration, and orchestration of services, enhancing development efficiency.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/docker-compose\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> les volumes externes vous permettent de partager des donn\u00e9es entre les services et de maintenir la persistance \u00e0 travers <span class=\"glossaryai-tooltip glossary-term-650\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/container\/\" target=\"_blank\">conteneur<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">Containers are lightweight, portable units that encapsulate software and its dependencies, enabling consistent execution across different environments. They leverage OS-level virtualization for efficiency.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/container\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> restarts. By defining external volumes, you can manage storage independently from your containers.<\/p>","protected":false},"author":1,"featured_media":1871,"parent":0,"template":"","glossary-cat":[],"class_list":["post-1277","glossary","type-glossary","status-publish","has-post-thumbnail","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Docker Compose External Volumes - Dockerpros<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/dockerpros.com\/fr\/wiki\/volumes-externes-docker-compose\/\" \/>\n<meta property=\"og:locale\" content=\"fr_FR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Docker Compose External Volumes - Dockerpros\" \/>\n<meta property=\"og:description\" content=\"Docker Compose external volumes allow you to share data between services and maintain persistence across container restarts. By defining external volumes, you can manage storage independently from your containers.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/dockerpros.com\/fr\/wiki\/volumes-externes-docker-compose\/\" \/>\n<meta property=\"og:site_name\" content=\"Dockerpros\" \/>\n<meta property=\"article:modified_time\" content=\"2024-07-23T12:22:19+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/dockerpros.com\/wp-content\/uploads\/2024\/07\/docker-compose-external-volumes_1277.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"800\" \/>\n\t<meta property=\"og:image:height\" content=\"600\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Dur\u00e9e de lecture estim\u00e9e\" \/>\n\t<meta name=\"twitter:data1\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/dockerpros.com\/wiki\/docker-compose-external-volumes\/\",\"url\":\"https:\/\/dockerpros.com\/wiki\/docker-compose-external-volumes\/\",\"name\":\"Docker Compose External Volumes - Dockerpros\",\"isPartOf\":{\"@id\":\"https:\/\/dockerpros.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/dockerpros.com\/wiki\/docker-compose-external-volumes\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/dockerpros.com\/wiki\/docker-compose-external-volumes\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/dockerpros.com\/wp-content\/uploads\/2024\/07\/docker-compose-external-volumes_1277.jpg\",\"datePublished\":\"2024-07-23T12:18:26+00:00\",\"dateModified\":\"2024-07-23T12:22:19+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/dockerpros.com\/wiki\/docker-compose-external-volumes\/#breadcrumb\"},\"inLanguage\":\"fr-FR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/dockerpros.com\/wiki\/docker-compose-external-volumes\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\/\/dockerpros.com\/wiki\/docker-compose-external-volumes\/#primaryimage\",\"url\":\"https:\/\/dockerpros.com\/wp-content\/uploads\/2024\/07\/docker-compose-external-volumes_1277.jpg\",\"contentUrl\":\"https:\/\/dockerpros.com\/wp-content\/uploads\/2024\/07\/docker-compose-external-volumes_1277.jpg\",\"width\":800,\"height\":600,\"caption\":\"docker-compose-external-volumes-2\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/dockerpros.com\/wiki\/docker-compose-external-volumes\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/dockerpros.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Glossary\",\"item\":\"https:\/\/dockerpros.com\/fr\/wiki\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Docker Compose External Volumes\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/dockerpros.com\/#website\",\"url\":\"https:\/\/dockerpros.com\/\",\"name\":\"Dockerpros\",\"description\":\"DockerPros \u2013 Your Ultimate Docker Resource Hub\",\"publisher\":{\"@id\":\"https:\/\/dockerpros.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/dockerpros.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"fr-FR\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/dockerpros.com\/#organization\",\"name\":\"Dockerpros\",\"url\":\"https:\/\/dockerpros.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\/\/dockerpros.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/dockerpros.com\/wp-content\/uploads\/2024\/07\/Dockerpros_logo_blanco.png\",\"contentUrl\":\"https:\/\/dockerpros.com\/wp-content\/uploads\/2024\/07\/Dockerpros_logo_blanco.png\",\"width\":532,\"height\":114,\"caption\":\"Dockerpros\"},\"image\":{\"@id\":\"https:\/\/dockerpros.com\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Volumes externes Docker Compose - Dockerpros","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/dockerpros.com\/fr\/wiki\/volumes-externes-docker-compose\/","og_locale":"fr_FR","og_type":"article","og_title":"Docker Compose External Volumes - Dockerpros","og_description":"Docker Compose external volumes allow you to share data between services and maintain persistence across container restarts. By defining external volumes, you can manage storage independently from your containers.","og_url":"https:\/\/dockerpros.com\/fr\/wiki\/volumes-externes-docker-compose\/","og_site_name":"Dockerpros","article_modified_time":"2024-07-23T12:22:19+00:00","og_image":[{"width":800,"height":600,"url":"https:\/\/dockerpros.com\/wp-content\/uploads\/2024\/07\/docker-compose-external-volumes_1277.jpg","type":"image\/jpeg"}],"twitter_card":"summary_large_image","twitter_misc":{"Dur\u00e9e de lecture estim\u00e9e":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/dockerpros.com\/wiki\/docker-compose-external-volumes\/","url":"https:\/\/dockerpros.com\/wiki\/docker-compose-external-volumes\/","name":"Volumes externes Docker Compose - Dockerpros","isPartOf":{"@id":"https:\/\/dockerpros.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/dockerpros.com\/wiki\/docker-compose-external-volumes\/#primaryimage"},"image":{"@id":"https:\/\/dockerpros.com\/wiki\/docker-compose-external-volumes\/#primaryimage"},"thumbnailUrl":"https:\/\/dockerpros.com\/wp-content\/uploads\/2024\/07\/docker-compose-external-volumes_1277.jpg","datePublished":"2024-07-23T12:18:26+00:00","dateModified":"2024-07-23T12:22:19+00:00","breadcrumb":{"@id":"https:\/\/dockerpros.com\/wiki\/docker-compose-external-volumes\/#breadcrumb"},"inLanguage":"fr-FR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/dockerpros.com\/wiki\/docker-compose-external-volumes\/"]}]},{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/dockerpros.com\/wiki\/docker-compose-external-volumes\/#primaryimage","url":"https:\/\/dockerpros.com\/wp-content\/uploads\/2024\/07\/docker-compose-external-volumes_1277.jpg","contentUrl":"https:\/\/dockerpros.com\/wp-content\/uploads\/2024\/07\/docker-compose-external-volumes_1277.jpg","width":800,"height":600,"caption":"docker-compose-external-volumes-2"},{"@type":"BreadcrumbList","@id":"https:\/\/dockerpros.com\/wiki\/docker-compose-external-volumes\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/dockerpros.com\/"},{"@type":"ListItem","position":2,"name":"Glossary","item":"https:\/\/dockerpros.com\/fr\/wiki\/"},{"@type":"ListItem","position":3,"name":"Docker Compose External Volumes"}]},{"@type":"WebSite","@id":"https:\/\/dockerpros.com\/#website","url":"https:\/\/dockerpros.com\/","name":"Dockerpros","description":"DockerPros \u2013 Votre centre de ressources Docker incontournable","publisher":{"@id":"https:\/\/dockerpros.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/dockerpros.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"fr-FR"},{"@type":"Organization","@id":"https:\/\/dockerpros.com\/#organization","name":"Dockerpros","url":"https:\/\/dockerpros.com\/","logo":{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/dockerpros.com\/#\/schema\/logo\/image\/","url":"https:\/\/dockerpros.com\/wp-content\/uploads\/2024\/07\/Dockerpros_logo_blanco.png","contentUrl":"https:\/\/dockerpros.com\/wp-content\/uploads\/2024\/07\/Dockerpros_logo_blanco.png","width":532,"height":114,"caption":"Dockerpros"},"image":{"@id":"https:\/\/dockerpros.com\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/dockerpros.com\/fr\/wp-json\/wp\/v2\/glossary\/1277","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dockerpros.com\/fr\/wp-json\/wp\/v2\/glossary"}],"about":[{"href":"https:\/\/dockerpros.com\/fr\/wp-json\/wp\/v2\/types\/glossary"}],"author":[{"embeddable":true,"href":"https:\/\/dockerpros.com\/fr\/wp-json\/wp\/v2\/users\/1"}],"version-history":[{"count":0,"href":"https:\/\/dockerpros.com\/fr\/wp-json\/wp\/v2\/glossary\/1277\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dockerpros.com\/fr\/wp-json\/wp\/v2\/media\/1871"}],"wp:attachment":[{"href":"https:\/\/dockerpros.com\/fr\/wp-json\/wp\/v2\/media?parent=1277"}],"wp:term":[{"taxonomy":"glossary-cat","embeddable":true,"href":"https:\/\/dockerpros.com\/fr\/wp-json\/wp\/v2\/glossary-cat?post=1277"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}