{"id":1414,"date":"2024-07-23T12:39:39","date_gmt":"2024-07-23T12:39:39","guid":{"rendered":"https:\/\/dockerpros.com\/?post_type=glossary&#038;p=1414"},"modified":"2024-07-23T12:39:39","modified_gmt":"2024-07-23T12:39:39","slug":"restauration-du-cache-dockerfile","status":"publish","type":"glossary","link":"https:\/\/dockerpros.com\/fr\/wiki\/dockerfile-cache-restore\/","title":{"rendered":"Dockerfile \u2013cache-restore"},"content":{"rendered":"<h2>Understanding Dockerfile \u2013cache-restore: A Deep Dive<\/h2>\n<p>Dans le monde de la conteneurisation, Docker a r\u00e9volutionn\u00e9 la fa\u00e7on dont les d\u00e9veloppeurs construisent, exp\u00e9dient et... <span class=\"glossaryai-tooltip glossary-term-672\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/run\/\" target=\"_blank\">run<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">\"RUN\" refers to a command in various programming languages and operating systems to execute a specified program or script. It initiates processes, providing a controlled environment for task execution.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/run\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> applications. Une fonctionnalit\u00e9 essentielle de Docker est son m\u00e9canisme de cache, qui optimise le processus de construction en r\u00e9utilisant les couches pr\u00e9c\u00e9demment construites. Parmi les fonctionnalit\u00e9s avanc\u00e9es offertes par Docker, on trouve le <code>--cache-depuis<\/code> and <code>--restauration-cache<\/code> Les options se d\u00e9marquent comme des outils puissants pour g\u00e9rer. <span class=\"glossaryai-tooltip glossary-term-739\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/image-layers\/\" target=\"_blank\">couches d'image<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">Les calques sont des composants fondamentaux dans les logiciels de conception et d'\u00e9dition graphique, permettant une manipulation non destructive des \u00e9l\u00e9ments. Chaque calque peut contenir diff\u00e9rentes images, effets ou r\u00e9glages, offrant un contr\u00f4le pr\u00e9cis sur la composition et les effets visuels.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/image-layers\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> de mani\u00e8re efficace. Dans cet article, nous allons explorer <code>--restauration-cache<\/code> in detail, discussing its functionality, advantages, practical use cases, and best practices to optimize Docker builds.<\/p>\n<h2>The Basics of Docker Caching<\/h2>\n<p>Comprendre <code>--restauration-cache<\/code>, we first need to grasp the concept of Docker\u2019s caching mechanism. When you build a Docker <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> en utilisant un <span class=\"glossaryai-tooltip glossary-term-652\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/dockerfile\/\" target=\"_blank\">Dockerfile<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">A Dockerfile is a script containing a series of instructions to automate the creation of Docker images. It specifies the base image, application dependencies, and configuration, facilitating consistent deployment across environments.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/dockerfile\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span>, Docker cr\u00e9e des couches pour chaque instruction du fichier. Ces couches sont mises en cache en fonction de leur contenu et des commandes. Si Docker d\u00e9tecte qu'il peut r\u00e9utiliser une couche d'une construction pr\u00e9c\u00e9dente (car la commande et son contexte n'ont pas chang\u00e9), il le fera, ce qui r\u00e9duit consid\u00e9rablement le temps de construction.<\/p>\n<p>The caching system works based on the principle of immutability\u2014if the content of a layer has not changed, Docker will not rebuild it. This behavior is beneficial in scenarios where code changes are isolated to specific layers, allowing for faster builds for subsequent operations.<\/p>\n<h2>The Need for \u2013cache-restore<\/h2>\n<p>While the default caching mechanism is effective, there are scenarios where developers need more control over caching, especially in CI\/CD environments or when using remote caching. This is where <code>--restauration-cache<\/code> comes into play. It allows users to pull layers from a specified cache from a previous build instead of relying solely on the local cache. <\/p>\n<p>This feature is particularly useful when working in environments where builds are frequently initiated, such as continuous integration pipelines. By restoring cache layers from a shared cache <span class=\"glossaryai-tooltip glossary-term-659\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/repository\/\" target=\"_blank\">repository<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">A repository is a centralized location where data, code, or documents are stored, managed, and maintained. It facilitates version control, collaboration, and efficient resource sharing among users.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/repository\/\">More \u00bb<\/a><\/span><\/span><span class=\"gai-tooltip-video-wrapper\"><span class=\"gai-tooltip-video\" data-src=\"https:\/\/www.youtube.com\/embed\/_OXj8BGxNPY?rel=0&#038;modestbranding=1\"><\/span><\/span><\/span><\/span><\/span>, vous pouvez consid\u00e9rablement acc\u00e9l\u00e9rer les temps de compilation et am\u00e9liorer l'efficacit\u00e9.<\/p>\n<h2>Exploring \u2013cache-restore: Syntax and Use Cases<\/h2>\n<p>The <code>--restauration-cache<\/code> option can be used in conjunction with the <code>docker build<\/code> commande. La syntaxe de base est la suivante :<\/p>\n<pre><code class=\"language-sh\">docker build --cache-restore= -t  <\/code><\/pre>\n<h3>Cas d'utilisation pour \u2013cache-restore<\/h3>\n<ol>\n<li>\n<p><strong>Pipelines CI\/CD<\/strong>Dans les configurations d'int\u00e9gration continue, les builds sont souvent d\u00e9marr\u00e9s de z\u00e9ro. En utilisant <code>--restauration-cache<\/code>, les \u00e9quipes peuvent r\u00e9cup\u00e9rer des couches pr\u00e9-construites depuis un cache partag\u00e9, ce qui acc\u00e9l\u00e8re consid\u00e9rablement le processus de construction.<\/p>\n<\/li>\n<li>\n<p><strong>Construire en plusieurs \u00e9tapes<\/strong>Les constructions multi-\u00e9tapes peuvent b\u00e9n\u00e9ficier des couches mises en cache car diff\u00e9rentes \u00e9tapes peuvent partager des d\u00e9pendances similaires. En restaurant le cache, vous pouvez \u00e9viter les installations redondantes entre les \u00e9tapes.<\/p>\n<\/li>\n<li>\n<p><strong>Frequent Dependency Updates<\/strong>: If your application frequently updates dependencies, using <code>--restauration-cache<\/code> allows you to cache layers where dependencies are installed, which means you won\u2019t have to download them again if they haven\u2019t changed.<\/p>\n<\/li>\n<li>\n<p><strong>Collaboration Across Teams<\/strong>: In a microservices architecture, different teams may work on different services that share common dependencies. By using a shared cache, teams can reduce build times across services.<\/p>\n<\/li>\n<li>\n<p><strong>Remote Cache<\/strong>: Si vous utilisez un t\u00e9l\u00e9commande <span class=\"glossaryai-tooltip glossary-term-736\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/docker-registry\/\" target=\"_blank\">Registre Docker<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">A Docker Registry is a storage and distribution system for Docker images. It allows developers to upload, manage, and share container images, facilitating efficient deployment in diverse environments.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/docker-registry\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span>, <code>--restauration-cache<\/code> allows you to restore cache layers from the <span class=\"glossaryai-tooltip glossary-term-658\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/registry\/\" target=\"_blank\">registry<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">Un registre est une base de donn\u00e9es centralis\u00e9e qui stocke des informations sur diff\u00e9rentes entit\u00e9s, telles que des installations logicielles, des configurations syst\u00e8me ou des donn\u00e9es utilisateur. Il constitue un composant essentiel pour la gestion et la configuration du syst\u00e8me.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/registry\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> without needing to rebuild everything locally.<\/p>\n<\/li>\n<\/ol>\n<h2>Avantages cl\u00e9s de l'utilisation de \u2013cache-restore\n\nL'utilisation de l'option \u2013cache-restore pr\u00e9sente plusieurs avantages importants :\n\n1. Gain de temps : En restaurant les donn\u00e9es mises en cache, vous \u00e9vitez de devoir re-t\u00e9l\u00e9charger ou re-traiter des informations d\u00e9j\u00e0 disponibles. Cela r\u00e9duit consid\u00e9rablement le temps n\u00e9cessaire pour effectuer certaines t\u00e2ches.\n\n2. \u00c9conomie de bande passante : Le cache-restore permet de minimiser l'utilisation de la bande passante en r\u00e9utilisant les donn\u00e9es d\u00e9j\u00e0 t\u00e9l\u00e9charg\u00e9es. C'est particuli\u00e8rement utile dans les environnements avec des connexions limit\u00e9es ou co\u00fbteuses.\n\n3. Am\u00e9lioration des performances : En acc\u00e9dant rapidement aux donn\u00e9es mises en cache, les applications et les syst\u00e8mes peuvent fonctionner plus efficacement, offrant une meilleure exp\u00e9rience utilisateur.\n\n4. R\u00e9duction de la charge serveur : En diminuant le nombre de requ\u00eates directes au serveur, le cache-restore all\u00e8ge la charge sur les serveurs, ce qui peut am\u00e9liorer la stabilit\u00e9 et la r\u00e9activit\u00e9 des services en ligne.\n\n5. Compatibilit\u00e9 avec les mises \u00e0 jour : M\u00eame lorsque des mises \u00e0 jour sont disponibles, le cache-restore peut \u00eatre configur\u00e9 pour utiliser les donn\u00e9es mises en cache tout en int\u00e9grant les nouvelles informations, assurant ainsi une transition en douceur.\n\n6. Flexibilit\u00e9 : L'option \u2013cache-restore peut souvent \u00eatre personnalis\u00e9e pour r\u00e9pondre \u00e0 des besoins sp\u00e9cifiques, permettant un contr\u00f4le pr\u00e9cis sur la mani\u00e8re dont les donn\u00e9es sont mises en cache et restaur\u00e9es.\n\n7. R\u00e9duction des erreurs : En utilisant des donn\u00e9es d\u00e9j\u00e0 valid\u00e9es et stock\u00e9es en cache, on diminue les risques d'erreurs li\u00e9es \u00e0 des t\u00e9l\u00e9chargements incomplets ou corrompus.\n\n8. Am\u00e9lioration de la fiabilit\u00e9 : Le cache-restore offre une couche de protection suppl\u00e9mentaire contre les pannes de r\u00e9seau ou les indisponibilit\u00e9s temporaires des serveurs, en permettant l'acc\u00e8s aux donn\u00e9es m\u00eame lorsque la source originale n'est pas disponible.\n\n9. Optimisation des ressources : En r\u00e9duisant la n\u00e9cessit\u00e9 de re-t\u00e9l\u00e9charger ou re-traiter des informations, le cache-restore permet une utilisation plus efficace des ressources syst\u00e8me, tant sur le plan mat\u00e9riel que logiciel.\n\n10. Support du mode hors-ligne : Dans certains cas, le cache-restore peut permettre l'acc\u00e8s \u00e0 des fonctionnalit\u00e9s ou des donn\u00e9es m\u00eame en l'absence de connexion internet, am\u00e9liorant ainsi l'accessibilit\u00e9 des services.\n\nEn conclusion, l'utilisation de l'option \u2013cache-restore offre de nombreux avantages qui peuvent significativement am\u00e9liorer l'efficacit\u00e9, les performances et la fiabilit\u00e9 des syst\u00e8mes et des applications qui l'emploient.<\/h2>\n<h3>Temps de construction am\u00e9lior\u00e9<\/h3>\n<p>The most immediate benefit of using <code>--restauration-cache<\/code> is the reduction in build times. By pulling in cached layers, you can skip the installation of packages or compilation of code that has not changed, leading to faster feedback loops during development.<\/p>\n<h3>Efficient Resource Utilization<\/h3>\n<p>La mise en cache aide \u00e0 utiliser les ressources de mani\u00e8re efficace. En r\u00e9utilisant les couches, vous r\u00e9duisez les <span class=\"glossaryai-tooltip glossary-term-661\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/network\/\" target=\"_blank\">r\u00e9seau<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">A network, in computing, refers to a collection of interconnected devices that communicate and share resources. It enables data exchange, facilitates collaboration, and enhances operational efficiency.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/network\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> bandwidth and computational resources required, which is especially significant in cloud environments where resources can be costly.<\/p>\n<h3>Consistency Across Builds<\/h3>\n<p>L'utilisation d'un cache partag\u00e9 garantit que toutes les constructions partent de la m\u00eame base, ce qui accro\u00eet la coh\u00e9rence des images produites. Cette uniformit\u00e9 peut aider \u00e0 \u00e9viter les probl\u00e8mes du type \u201c \u00e7a marche sur ma machine \u201d.<\/p>\n<h3>Gestion simplifi\u00e9e des d\u00e9pendances<\/h3>\n<p>Avec <code>--restauration-cache<\/code>, la gestion des d\u00e9pendances devient plus facile, surtout lorsqu'un grand nombre de d\u00e9pendances sont impliqu\u00e9es. Au lieu de tout r\u00e9installer, vous pouvez restaurer les couches d\u00e9j\u00e0 mises en cache.<\/p>\n<h2>Bonnes pratiques pour l'utilisation de \u2013cache-restore<\/h2>\n<p>To make the most of the <code>--restauration-cache<\/code> feature, consider the following best practices:<\/p>\n<h3>1. Organize Your Dockerfile<\/h3>\n<p>The order of instructions in your <span class=\"glossaryai-tooltip glossary-term-652\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/dockerfile\/\" target=\"_blank\">Dockerfile<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">A Dockerfile is a script containing a series of instructions to automate the creation of Docker images. It specifies the base image, application dependencies, and configuration, facilitating consistent deployment across environments.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/dockerfile\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> can significantly impact caching. Group commands wisely to maximize cache utilization. For example, separate the installation of system dependencies from application code to allow the caching mechanism to work more efficiently.<\/p>\n<h3>2. Use Specific Tags for Cached Images<\/h3>\n<p>When you push cached images to a remote <span class=\"glossaryai-tooltip glossary-term-659\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/repository\/\" target=\"_blank\">repository<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">A repository is a centralized location where data, code, or documents are stored, managed, and maintained. It facilitates version control, collaboration, and efficient resource sharing among users.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/repository\/\">More \u00bb<\/a><\/span><\/span><span class=\"gai-tooltip-video-wrapper\"><span class=\"gai-tooltip-video\" data-src=\"https:\/\/www.youtube.com\/embed\/_OXj8BGxNPY?rel=0&#038;modestbranding=1\"><\/span><\/span><\/span><\/span><\/span>, use specific tags. This allows you to easily identify and restore the correct cache layers in future builds.<\/p>\n<h3>3. Nettoyez les images inutilis\u00e9es<\/h3>\n<p>Regularly clean up unused images and cache layers in your <span class=\"glossaryai-tooltip glossary-term-736\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/docker-registry\/\" target=\"_blank\">Registre Docker<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">A Docker Registry is a storage and distribution system for Docker images. It allows developers to upload, manage, and share container images, facilitating efficient deployment in diverse environments.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/docker-registry\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> to save space and ensure that your build process remains efficient.<\/p>\n<h3>4. Monitor Build Performance<\/h3>\n<p>Keep track of build times and analyze the output to identify which layers are frequently rebuilt. This feedback can help you optimize your <span class=\"glossaryai-tooltip glossary-term-652\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/dockerfile\/\" target=\"_blank\">Dockerfile<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">A Dockerfile is a script containing a series of instructions to automate the creation of Docker images. It specifies the base image, application dependencies, and configuration, facilitating consistent deployment across environments.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/dockerfile\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> further.<\/p>\n<h3>5. Use Multi-Stage Builds Wisely<\/h3>\n<p>Incorporate multi-stage builds when necessary. This way, you can leverage cached layers in one stage for another, reducing overall build time and improving organization.<\/p>\n<h2>Potential Challenges and Solutions<\/h2>\n<p>While <code>--restauration-cache<\/code> is a powerful feature, it\u2019s important to be aware of potential challenges:<\/p>\n<h3>1. Cache Invalidation<\/h3>\n<p>Changes in dependencies or system libraries can invalidate cached layers. To mitigate this, carefully structure your <span class=\"glossaryai-tooltip glossary-term-652\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/dockerfile\/\" target=\"_blank\">Dockerfile<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">A Dockerfile is a script containing a series of instructions to automate the creation of Docker images. It specifies the base image, application dependencies, and configuration, facilitating consistent deployment across environments.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/dockerfile\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> and try to isolate layers that are less likely to change.<\/p>\n<h3>2. Network Issues<\/h3>\n<p>Using a remote cache can lead to <span class=\"glossaryai-tooltip glossary-term-661\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/network\/\" target=\"_blank\">r\u00e9seau<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">A network, in computing, refers to a collection of interconnected devices that communicate and share resources. It enables data exchange, facilitates collaboration, and enhances operational efficiency.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/network\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> dependency issues. Ensure that your CI\/CD pipeline can access the remote <span class=\"glossaryai-tooltip glossary-term-658\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/registry\/\" target=\"_blank\">registry<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">Un registre est une base de donn\u00e9es centralis\u00e9e qui stocke des informations sur diff\u00e9rentes entit\u00e9s, telles que des installations logicielles, des configurations syst\u00e8me ou des donn\u00e9es utilisateur. Il constitue un composant essentiel pour la gestion et la configuration du syst\u00e8me.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/registry\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> reliably, and consider using local mirrors if necessary.<\/p>\n<h3>3. Increased Complexity<\/h3>\n<p>La gestion d'une couche de cache peut <span class=\"glossaryai-tooltip glossary-term-674\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/add\/\" target=\"_blank\">add<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">La commande ADD dans Docker est une instruction utilis\u00e9e dans les Dockerfiles pour copier des fichiers et des r\u00e9pertoires depuis une machine h\u00f4te vers une image Docker pendant le processus de construction. Elle facilite non seulement le transfert de fichiers locaux, mais offre \u00e9galement des fonctionnalit\u00e9s suppl\u00e9mentaires, telles que l'extraction automatique de fichiers compress\u00e9s et le t\u00e9l\u00e9chargement de fichiers distants via HTTP ou HTTPS.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/add\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> complexity to your build process. Keep your caching strategy well documented and communicate it clearly across your team.<\/p>\n<h2>Real-World Example<\/h2>\n<p>Let\u2019s take a look at a practical example of using the <code>--restauration-cache<\/code> fonctionnalit\u00e9 dans un pipeline CI\/CD. Supposons que nous ayons un <span class=\"glossaryai-tooltip glossary-term-684\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/node\/\" target=\"_blank\">Node<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">Node, or Node.js, is a JavaScript runtime built on Chrome's V8 engine, enabling server-side scripting. It allows developers to build scalable network applications using asynchronous, event-driven architecture.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/node\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span>.js application with the following <span class=\"glossaryai-tooltip glossary-term-652\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/dockerfile\/\" target=\"_blank\">Dockerfile<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">A Dockerfile is a script containing a series of instructions to automate the creation of Docker images. It specifies the base image, application dependencies, and configuration, facilitating consistent deployment across environments.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/dockerfile\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span>:<\/p>\n<pre><code class=\"language-dockerfile\"># syntax=docker\/dockerfile:1.3\n\nFROM <span class=\"glossaryai-tooltip glossary-term-684\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/node\/\" target=\"_blank\">n\u0153ud<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">Node, or Node.js, is a JavaScript runtime built on Chrome's V8 engine, enabling server-side scripting. It allows developers to build scalable network applications using asynchronous, event-driven architecture.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/node\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span>14\u00a0:14 AS base\n<span class=\"glossaryai-tooltip glossary-term-675\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/workdir\/\" target=\"_blank\">WORKDIR<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">L'instruction `WORKDIR` dans le Dockerfile d\u00e9finit le r\u00e9pertoire de travail pour les instructions suivantes. Elle simplifie la gestion des chemins, car tous les chemins relatifs seront r\u00e9solus \u00e0 partir de ce r\u00e9pertoire, am\u00e9liorant ainsi la clart\u00e9 de la construction.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/workdir\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> \/app\n\n# Installer les d\u00e9pendances\n<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> package*.json .\/\n<span class=\"glossaryai-tooltip glossary-term-672\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/run\/\" target=\"_blank\">RUN<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">\"RUN\" refers to a command in various programming languages and operating systems to execute a specified program or script. It initiates processes, providing a controlled environment for task execution.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/run\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> npm install\n\n# <span class=\"glossaryai-tooltip glossary-term-673\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/copy\/\" target=\"_blank\">Copier<\/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> application code\n<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> . .\n\n# Build the application\n<span class=\"glossaryai-tooltip glossary-term-672\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/run\/\" target=\"_blank\">RUN<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">\"RUN\" refers to a command in various programming languages and operating systems to execute a specified program or script. It initiates processes, providing a controlled environment for task execution.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/run\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> npm <span class=\"glossaryai-tooltip glossary-term-672\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/run\/\" target=\"_blank\">run<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">\"RUN\" refers to a command in various programming languages and operating systems to execute a specified program or script. It initiates processes, providing a controlled environment for task execution.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/run\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> build\n\nFROM nginx:alpine AS production\n<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> --from=base \/app\/build \/usr\/share\/nginx\/html<\/code><\/pre>\n<p>In a CI pipeline, you can use <code>--restauration-cache<\/code> to speed up the build process:<\/p>\n<pre><code class=\"language-sh\">docker build --cache-restore=my-cache:latest -t my-app:latest .<\/code><\/pre>\n<p>Here, <code>my-cache:latest<\/code> would contain the cached layers from previous builds. When changes are made to the application code, the dependency installation layer will be restored from the cache if the <code>package*.json<\/code> files haven\u2019t changed, leading to faster builds.<\/p>\n<h2>Conclusion<\/h2>\n<p>The <code>--restauration-cache<\/code> feature in Docker is an invaluable tool for optimizing the build process, especially in environments where speed and consistency are paramount. By leveraging cached layers effectively, teams can significantly reduce build times, improve resource utilization, and maintain consistency across their <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> images. By following best practices and being aware of potential challenges, developers can harness the full power of Docker\u2019s caching mechanisms, paving the way for more efficient and reliable application development. As containerization continues to evolve, understanding and implementing advanced features like <code>--restauration-cache<\/code> will be crucial for staying competitive in the ever-changing software landscape.<\/p>","protected":false},"excerpt":{"rendered":"<p>The `\u2013cache-restore` option in <span class=\"glossaryai-tooltip glossary-term-652\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/dockerfile\/\" target=\"_blank\">Dockerfile<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">A Dockerfile is a script containing a series of instructions to automate the creation of Docker images. It specifies the base image, application dependencies, and configuration, facilitating consistent deployment across environments.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/dockerfile\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> permet aux utilisateurs d'exploiter les couches mises en cache pendant le processus de construction. Cette fonctionnalit\u00e9 am\u00e9liore l'efficacit\u00e9 de la construction en r\u00e9duisant les op\u00e9rations redondantes et en diminuant les temps de construction.<\/p>","protected":false},"author":1,"featured_media":2141,"parent":0,"template":"","glossary-cat":[],"class_list":["post-1414","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>Dockerfile -cache-restore - 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\/restauration-du-cache-dockerfile\/\" \/>\n<meta property=\"og:locale\" content=\"fr_FR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Dockerfile -cache-restore - Dockerpros\" \/>\n<meta property=\"og:description\" content=\"The `--cache-restore` option in Dockerfile allows users to leverage cached layers during the build process. This feature enhances build efficiency by minimizing redundant operations and reducing build times.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/dockerpros.com\/fr\/wiki\/restauration-du-cache-dockerfile\/\" \/>\n<meta property=\"og:site_name\" content=\"Dockerpros\" \/>\n<meta property=\"og:image\" content=\"https:\/\/dockerpros.com\/wp-content\/uploads\/2024\/07\/dockerfile-cache-restore_1414.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\/dockerfile-cache-restore\/\",\"url\":\"https:\/\/dockerpros.com\/wiki\/dockerfile-cache-restore\/\",\"name\":\"Dockerfile -cache-restore - Dockerpros\",\"isPartOf\":{\"@id\":\"https:\/\/dockerpros.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/dockerpros.com\/wiki\/dockerfile-cache-restore\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/dockerpros.com\/wiki\/dockerfile-cache-restore\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/dockerpros.com\/wp-content\/uploads\/2024\/07\/dockerfile-cache-restore_1414.jpg\",\"datePublished\":\"2024-07-23T12:39:39+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/dockerpros.com\/wiki\/dockerfile-cache-restore\/#breadcrumb\"},\"inLanguage\":\"fr-FR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/dockerpros.com\/wiki\/dockerfile-cache-restore\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\/\/dockerpros.com\/wiki\/dockerfile-cache-restore\/#primaryimage\",\"url\":\"https:\/\/dockerpros.com\/wp-content\/uploads\/2024\/07\/dockerfile-cache-restore_1414.jpg\",\"contentUrl\":\"https:\/\/dockerpros.com\/wp-content\/uploads\/2024\/07\/dockerfile-cache-restore_1414.jpg\",\"width\":800,\"height\":600,\"caption\":\"dockerfile-cache-restore-2\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/dockerpros.com\/wiki\/dockerfile-cache-restore\/#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\":\"Dockerfile &#8211;cache-restore\"}]},{\"@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":"Dockerfile - restauration du cache - 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\/restauration-du-cache-dockerfile\/","og_locale":"fr_FR","og_type":"article","og_title":"Dockerfile -cache-restore - Dockerpros","og_description":"The `--cache-restore` option in Dockerfile allows users to leverage cached layers during the build process. This feature enhances build efficiency by minimizing redundant operations and reducing build times.","og_url":"https:\/\/dockerpros.com\/fr\/wiki\/restauration-du-cache-dockerfile\/","og_site_name":"Dockerpros","og_image":[{"width":800,"height":600,"url":"https:\/\/dockerpros.com\/wp-content\/uploads\/2024\/07\/dockerfile-cache-restore_1414.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\/dockerfile-cache-restore\/","url":"https:\/\/dockerpros.com\/wiki\/dockerfile-cache-restore\/","name":"Dockerfile - restauration du cache - Dockerpros","isPartOf":{"@id":"https:\/\/dockerpros.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/dockerpros.com\/wiki\/dockerfile-cache-restore\/#primaryimage"},"image":{"@id":"https:\/\/dockerpros.com\/wiki\/dockerfile-cache-restore\/#primaryimage"},"thumbnailUrl":"https:\/\/dockerpros.com\/wp-content\/uploads\/2024\/07\/dockerfile-cache-restore_1414.jpg","datePublished":"2024-07-23T12:39:39+00:00","breadcrumb":{"@id":"https:\/\/dockerpros.com\/wiki\/dockerfile-cache-restore\/#breadcrumb"},"inLanguage":"fr-FR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/dockerpros.com\/wiki\/dockerfile-cache-restore\/"]}]},{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/dockerpros.com\/wiki\/dockerfile-cache-restore\/#primaryimage","url":"https:\/\/dockerpros.com\/wp-content\/uploads\/2024\/07\/dockerfile-cache-restore_1414.jpg","contentUrl":"https:\/\/dockerpros.com\/wp-content\/uploads\/2024\/07\/dockerfile-cache-restore_1414.jpg","width":800,"height":600,"caption":"dockerfile-cache-restore-2"},{"@type":"BreadcrumbList","@id":"https:\/\/dockerpros.com\/wiki\/dockerfile-cache-restore\/#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":"Dockerfile &#8211;cache-restore"}]},{"@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\/1414","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\/1414\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dockerpros.com\/fr\/wp-json\/wp\/v2\/media\/2141"}],"wp:attachment":[{"href":"https:\/\/dockerpros.com\/fr\/wp-json\/wp\/v2\/media?parent=1414"}],"wp:term":[{"taxonomy":"glossary-cat","embeddable":true,"href":"https:\/\/dockerpros.com\/fr\/wp-json\/wp\/v2\/glossary-cat?post=1414"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}