{"id":216,"date":"2024-07-21T11:46:21","date_gmt":"2024-07-21T11:46:21","guid":{"rendered":"https:\/\/dockerpros.com\/?p=216"},"modified":"2024-07-21T11:46:21","modified_gmt":"2024-07-21T11:46:21","slug":"how-do-i-use-secrets-in-docker","status":"publish","type":"post","link":"https:\/\/dockerpros.com\/fr\/security\/how-do-i-use-secrets-in-docker\/","title":{"rendered":"Comment utiliser les secrets dans Docker ?"},"content":{"rendered":"<h1>How to Use Secrets in Docker: A Comprehensive Guide<\/h1>\n<p>Dans le monde de la conteneurisation, g\u00e9rer les donn\u00e9es sensibles telles que les mots de passe, <span class=\"glossaryai-tooltip glossary-term-1249\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/api\/\" target=\"_blank\">API<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">Une API, ou Interface de programmation, permet aux applications logicielles de communiquer et d'interagir entre elles. Elle d\u00e9finit des protocoles et des outils pour construire des logiciels et faciliter l'int\u00e9gration.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/api\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> Les cl\u00e9s et les certificats sont cruciaux. Docker, l'une des plateformes de conteneurisation les plus populaires, offre un m\u00e9canisme robuste pour g\u00e9rer les secrets. Cet article vise \u00e0 fournir une compr\u00e9hension approfondie de l'utilisation efficace des secrets dans Docker, couvrant tout, des bases aux cas d'utilisation avanc\u00e9s.<\/p>\n<h2>What Are Docker Secrets?<\/h2>\n<p>Docker secrets are a way to securely store sensitive data that your applications need to function. They provide a means to keep sensitive information out of your codebase while ensuring that it can be accessed by the necessary services at runtime. Unlike environment variables, which can be exposed in various ways, Docker secrets provide a more secure method of handling sensitive data.<\/p>\n<h3>Caract\u00e9ristiques principales de Docker Secrets :<\/h3>\n<ul>\n<li><strong>Chiffrement au repos<\/strong>: Les secrets sont crypt\u00e9s lors du stockage et ne peuvent \u00eatre consult\u00e9s que par les services qui en ont besoin.<\/li>\n<li><strong>Port\u00e9e aux Services<\/strong>: Seuls les services qui ont obtenu l'acc\u00e8s peuvent lire les secrets.<\/li>\n<li><strong>Pas de codage en dur<\/strong>: Secrets can be injected into your containers, reducing the risk of leaks through source code or configuration files.<\/li>\n<\/ul>\n<h2>Configuration de Docker Swarm<\/h2>\n<p>Avant de pouvoir utiliser les secrets dans Docker, vous devez configurer un <span class=\"glossaryai-tooltip glossary-term-655\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/docker-swarm\/\" target=\"_blank\">Docker Swarm<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">Docker Swarm est un outil d'orchestration de conteneurs qui permet de g\u00e9rer un cluster de moteurs Docker. Il simplifie la mise \u00e0 l'\u00e9chelle et le d\u00e9ploiement, en assurant haute disponibilit\u00e9 et \u00e9quilibrage de charge entre les services.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/docker-swarm\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span>. <span class=\"glossaryai-tooltip glossary-term-655\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/docker-swarm\/\" target=\"_blank\">Docker Swarm<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">Docker Swarm est un outil d'orchestration de conteneurs qui permet de g\u00e9rer un cluster de moteurs Docker. Il simplifie la mise \u00e0 l'\u00e9chelle et le d\u00e9ploiement, en assurant haute disponibilit\u00e9 et \u00e9quilibrage de charge entre les services.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/docker-swarm\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> is Docker&#8217;s native clustering and <span class=\"glossaryai-tooltip glossary-term-657\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/orchestration\/\" target=\"_blank\">orchestration<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">L'orchestration d\u00e9signe la gestion et la coordination automatis\u00e9es de syst\u00e8mes et de services complexes. Elle optimise les processus en int\u00e9grant diverses composantes, en garantissant un fonctionnement efficace et une utilisation optimale des ressources.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/orchestration\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> Outil. Les secrets ne sont disponibles qu'en mode Swarm, ce qui signifie que vous devez initialiser un Swarm pour utiliser cette fonctionnalit\u00e9.<\/p>\n<h3>Initialisation d'un Docker Swarm<\/h3>\n<p>To initialize a Swarm, <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> the following command:<\/p>\n<pre><code class=\"language-bash\"><span class=\"glossaryai-tooltip glossary-term-1141\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/docker-swarm-init\/\" target=\"_blank\">docker swarm init<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">Docker Swarm Init is a command used to initialize a new Swarm cluster. It configures the current Docker host as a manager node, enabling orchestration of services across multiple hosts.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/docker-swarm-init\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span><\/code><\/pre>\n<p>Cette commande convertit votre <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> dans un gestionnaire Swarm. Vous verrez une sortie avec une commande pour rejoindre d'autres n\u0153uds si vous souhaitez cr\u00e9er un Swarm multi-n\u0153uds.<\/p>\n<h3>Joining Nodes to the Swarm<\/h3>\n<p>If you want to <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> Pour ajouter plus de n\u0153uds \u00e0 votre essaim, utilisez la commande affich\u00e9e dans la sortie de l' <code><span class=\"glossaryai-tooltip glossary-term-1141\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/docker-swarm-init\/\" target=\"_blank\">docker swarm init<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">Docker Swarm Init is a command used to initialize a new Swarm cluster. It configures the current Docker host as a manager node, enabling orchestration of services across multiple hosts.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/docker-swarm-init\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span><\/code> command sur ces n\u0153uds. Par exemple :<\/p>\n<pre><code class=\"language-bash\"><span class=\"glossaryai-tooltip glossary-term-1142\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/docker-swarm-join\/\" target=\"_blank\">docker swarm join<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">Docker Swarm Join enables nodes to connect and form a cluster within a Docker swarm. By utilizing the `docker swarm join` command with a token and manager IP, nodes can seamlessly integrate into the orchestration framework, enhancing scalability and resource management.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/docker-swarm-join\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> --jeton<\/code><\/pre>\n<p>Remplacer <code>` with the actual token and<\/code>: avec l'adresse du gestionnaire Swarm.<\/p>\n<h2>Creating Docker Secrets<\/h2>\n<p>Once your Swarm is up and running, you can start creating secrets. The Docker CLI provides a straightforward way to do this.<\/p>\n<h3>Cr\u00e9er un secret \u00e0 partir d'un fichier<\/h3>\n<p>If you have a sensitive value stored in a file, you can create a <span class=\"glossaryai-tooltip glossary-term-687\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/secret\/\" target=\"_blank\">secret<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">The concept of \"secret\" encompasses information withheld from others, often for reasons of privacy, security, or confidentiality. Understanding its implications is crucial in fields such as data protection and communication theory.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/secret\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> from that file using the following command:<\/p>\n<pre><code class=\"language-bash\">docker <span class=\"glossaryai-tooltip glossary-term-687\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/secret\/\" target=\"_blank\">secret<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">The concept of \"secret\" encompasses information withheld from others, often for reasons of privacy, security, or confidentiality. Understanding its implications is crucial in fields such as data protection and communication theory.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/secret\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> cr\u00e9er  <\/code><\/pre>\n<p>Par exemple, si vous avez un fichier de mot de passe appel\u00e9 <code>db_password.txt<\/code>, you can create a <span class=\"glossaryai-tooltip glossary-term-687\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/secret\/\" target=\"_blank\">secret<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">The concept of \"secret\" encompasses information withheld from others, often for reasons of privacy, security, or confidentiality. Understanding its implications is crucial in fields such as data protection and communication theory.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/secret\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> nomm\u00e9 <code>mot_de_passe_bdd<\/code> comme \u00e7a<\/p>\n<pre><code class=\"language-bash\">docker <span class=\"glossaryai-tooltip glossary-term-687\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/secret\/\" target=\"_blank\">secret<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">The concept of \"secret\" encompasses information withheld from others, often for reasons of privacy, security, or confidentiality. Understanding its implications is crucial in fields such as data protection and communication theory.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/secret\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> create db_password db_password.txt<\/code><\/pre>\n<h3>Creating a Secret from Standard Input<\/h3>\n<p>You can also create a <span class=\"glossaryai-tooltip glossary-term-687\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/secret\/\" target=\"_blank\">secret<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">The concept of \"secret\" encompasses information withheld from others, often for reasons of privacy, security, or confidentiality. Understanding its implications is crucial in fields such as data protection and communication theory.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/secret\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> directly from the terminal using standard input. For example:<\/p>\n<pre><code class=\"language-bash\">echo \"my_super_secure_password\" | docker <span class=\"glossaryai-tooltip glossary-term-687\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/secret\/\" target=\"_blank\">secret<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">The concept of \"secret\" encompasses information withheld from others, often for reasons of privacy, security, or confidentiality. Understanding its implications is crucial in fields such as data protection and communication theory.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/secret\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> create db_password -<\/code><\/pre>\n<p>The <code>-<\/code> indicates that the <span class=\"glossaryai-tooltip glossary-term-687\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/secret\/\" target=\"_blank\">secret<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">The concept of \"secret\" encompasses information withheld from others, often for reasons of privacy, security, or confidentiality. Understanding its implications is crucial in fields such as data protection and communication theory.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/secret\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> should be read from standard input.<\/p>\n<h3>Liste des secrets<\/h3>\n<p>Pour afficher les secrets que vous avez cr\u00e9\u00e9s, utilisez la commande suivante :<\/p>\n<pre><code class=\"language-bash\">docker <span class=\"glossaryai-tooltip glossary-term-687\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/secret\/\" target=\"_blank\">secret<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">The concept of \"secret\" encompasses information withheld from others, often for reasons of privacy, security, or confidentiality. Understanding its implications is crucial in fields such as data protection and communication theory.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/secret\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> ls<\/code><\/pre>\n<p>This command will give you a list of all secrets available in your Swarm.<\/p>\n<h2>Utilisation des secrets Docker dans les services\n\nLes secrets sont une fonctionnalit\u00e9 de Docker Swarm qui permet de stocker et de g\u00e9rer des informations sensibles, telles que des mots de passe, des cl\u00e9s API ou des certificats SSL, de mani\u00e8re s\u00e9curis\u00e9e. Les secrets sont chiffr\u00e9s et stock\u00e9s sur les n\u0153uds du cluster Swarm, et ne sont d\u00e9chiffr\u00e9s que lorsqu'ils sont n\u00e9cessaires pour \u00eatre utilis\u00e9s par les services.\n\nPour utiliser des secrets dans vos services Docker, vous devez d'abord cr\u00e9er un secret. Vous pouvez le faire en utilisant la commande `docker secret create` :\n\n```bash\necho \"mon_mot_de_passe_secret\" | docker secret create mon_secret -\n```\n\nCette commande cr\u00e9e un secret nomm\u00e9 `mon_secret` avec le contenu `mon_mot_de_passe_secret`.\n\nUne fois que vous avez cr\u00e9\u00e9 un secret, vous pouvez l'utiliser dans vos services en le sp\u00e9cifiant dans la d\u00e9finition du service. Par exemple, pour cr\u00e9er un service qui utilise le secret `mon_secret`, vous pouvez utiliser la commande `docker service create` avec l'option `--secret` :\n\n```bash\ndocker service create --name mon_service --secret mon_secret nginx\n```\n\nCette commande cr\u00e9e un service nomm\u00e9 `mon_service` qui utilise l'image `nginx` et qui a acc\u00e8s au secret `mon_secret`.\n\nLorsque le service est en cours d'ex\u00e9cution, le secret est mont\u00e9 en tant que fichier dans le conteneur. Par d\u00e9faut, le secret est mont\u00e9 dans le r\u00e9pertoire `\/run\/secrets\/` avec le m\u00eame nom que le secret. Dans notre exemple, le secret `mon_secret` serait mont\u00e9 dans le fichier `\/run\/secrets\/mon_secret` \u00e0 l'int\u00e9rieur du conteneur.\n\nVous pouvez ensuite acc\u00e9der au secret dans votre application en lisant le contenu du fichier. Par exemple, en utilisant Python, vous pouvez lire le contenu du secret comme suit :\n\n```python\nwith open('\/run\/secrets\/mon_secret', 'r') as secret_file:\n    secret = secret_file.read().strip()\n```\n\nIl est important de noter que les secrets sont uniquement disponibles pour les services, et non pour les conteneurs autonomes. De plus, les secrets sont chiffr\u00e9s en transit et au repos, ce qui garantit leur s\u00e9curit\u00e9.\n\nEn r\u00e9sum\u00e9, les secrets Docker sont un moyen s\u00e9gal de stocker et de g\u00e9rer des informations sensibles dans vos services Docker Swarm. Ils permettent de s\u00e9parer les informations sensibles de la configuration de vos services et de les rendre accessibles uniquement lorsque cela est n\u00e9cessaire.<\/h2>\n<p>Une fois que vous avez cr\u00e9\u00e9 vos secrets, l'\u00e9tape suivante consiste \u00e0 les utiliser dans vos services Docker. Vous pouvez le faire lors de la cr\u00e9ation d'un <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> or updating an existing one.<\/p>\n<h3>Cr\u00e9ation d'un service avec des secrets<\/h3>\n<p>To create a <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 uses a <span class=\"glossaryai-tooltip glossary-term-687\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/secret\/\" target=\"_blank\">secret<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">The concept of \"secret\" encompasses information withheld from others, often for reasons of privacy, security, or confidentiality. Understanding its implications is crucial in fields such as data protection and communication theory.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/secret\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span>, Texte incomplet. <span class=\"glossaryai-tooltip glossary-term-687\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/secret\/\" target=\"_blank\">secret<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">The concept of \"secret\" encompasses information withheld from others, often for reasons of privacy, security, or confidentiality. Understanding its implications is crucial in fields such as data protection and communication theory.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/secret\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> en utilisant le <code>--secret<\/code> flag. Here\u2019s an example that shows how to create a <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> en utilisant le <code>mot_de_passe_bdd<\/code> <span class=\"glossaryai-tooltip glossary-term-687\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/secret\/\" target=\"_blank\">secret<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">The concept of \"secret\" encompasses information withheld from others, often for reasons of privacy, security, or confidentiality. Understanding its implications is crucial in fields such as data protection and communication theory.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/secret\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span>:<\/p>\n<pre><code class=\"language-bash\"><span class=\"glossaryai-tooltip glossary-term-1148\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/docker-service-create\/\" target=\"_blank\">docker service create<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">La commande `docker service create` permet aux utilisateurs de cr\u00e9er et de d\u00e9ployer un nouveau service dans un Docker Swarm. Elle permet la mise \u00e0 l'\u00e9chelle, l'\u00e9quilibrage de charge et la gestion des applications conteneuris\u00e9es sur plusieurs n\u0153uds.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/docker-service-create\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> --name my_service --secret db_password my_image<\/code><\/pre>\n<h3>Acc\u00e8s aux secrets dans les conteneurs<\/h3>\n<p>Once 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> is running, the <span class=\"glossaryai-tooltip glossary-term-687\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/secret\/\" target=\"_blank\">secret<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">The concept of \"secret\" encompasses information withheld from others, often for reasons of privacy, security, or confidentiality. Understanding its implications is crucial in fields such as data protection and communication theory.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/secret\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> is available to the containers as a file in the <code>\/run\/secrets\/<\/code> directory. For example, the <code>mot_de_passe_bdd<\/code> <span class=\"glossaryai-tooltip glossary-term-687\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/secret\/\" target=\"_blank\">secret<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">The concept of \"secret\" encompasses information withheld from others, often for reasons of privacy, security, or confidentiality. Understanding its implications is crucial in fields such as data protection and communication theory.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/secret\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> can be accessed at:<\/p>\n<pre><code>\/run\/secrets\/db_password<\/code><\/pre>\n<p>Vous pouvez lire ce fichier dans votre application tout comme vous liriez n'importe quel autre fichier. <\/p>\n<p>Here is an example using Python to read the <span class=\"glossaryai-tooltip glossary-term-687\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/secret\/\" target=\"_blank\">secret<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">The concept of \"secret\" encompasses information withheld from others, often for reasons of privacy, security, or confidentiality. Understanding its implications is crucial in fields such as data protection and communication theory.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/secret\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span>:<\/p>\n<pre><code class=\"language-python\">with open('\/run\/secrets\/db_password', 'r') as file:\n    db_password = file.read().strip()<\/code><\/pre>\n<h3>Updating Services with Secrets<\/h3>\n<p>If you need to update an existing <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> to <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> a new <span class=\"glossaryai-tooltip glossary-term-687\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/secret\/\" target=\"_blank\">secret<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">The concept of \"secret\" encompasses information withheld from others, often for reasons of privacy, security, or confidentiality. Understanding its implications is crucial in fields such as data protection and communication theory.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/secret\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> or change an existing one, you can use the <code><span class=\"glossaryai-tooltip glossary-term-1149\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/docker-service-update\/\" target=\"_blank\">docker service update<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">La fonctionnalit\u00e9 Docker Service Update permet des mises \u00e0 jour transparentes des services en cours d'ex\u00e9cution dans un cluster Swarm. Elle facilite les mises \u00e0 jour continues, garantissant un temps d'arr\u00eat minimal tout en maintenant la disponibilit\u00e9 et la stabilit\u00e9 du service.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/docker-service-update\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span><\/code> command:<\/p>\n<pre><code class=\"language-bash\"><span class=\"glossaryai-tooltip glossary-term-1149\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/docker-service-update\/\" target=\"_blank\">docker service update<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">La fonctionnalit\u00e9 Docker Service Update permet des mises \u00e0 jour transparentes des services en cours d'ex\u00e9cution dans un cluster Swarm. Elle facilite les mises \u00e0 jour continues, garantissant un temps d'arr\u00eat minimal tout en maintenant la disponibilit\u00e9 et la stabilit\u00e9 du service.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/docker-service-update\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> --secret-add new_secret my_service<\/code><\/pre>\n<h2>Meilleures pratiques pour la gestion des secrets Docker\n\nLes secrets Docker sont des informations sensibles, telles que les mots de passe, les cl\u00e9s API et les certificats, qui doivent \u00eatre prot\u00e9g\u00e9s et g\u00e9r\u00e9s de mani\u00e8re s\u00e9curis\u00e9e dans les environnements de conteneurs. Voici quelques meilleures pratiques pour g\u00e9rer efficacement les secrets Docker :\n\n1. Utilisez le syst\u00e8me de secrets int\u00e9gr\u00e9 de Docker :\n   - Docker Swarm dispose d'un syst\u00e8me de gestion des secrets int\u00e9gr\u00e9.\n   - Utilisez la commande `docker secret` pour cr\u00e9er, lister et supprimer des secrets.\n   - Les secrets sont automatiquement chiffr\u00e9s au repos et en transit.\n\n2. \u00c9vitez de stocker les secrets dans les images Docker :\n   - Ne stockez jamais les secrets directement dans les images Docker.\n   - Utilisez des variables d'environnement ou des fichiers de configuration externes.\n\n3. Utilisez des outils de gestion des secrets externes :\n   - HashiCorp Vault\n   - AWS Secrets Manager\n   - Azure Key Vault\n   - Google Cloud Secret Manager\n\n4. Mettez en \u0153uvre le principe du moindre privil\u00e8ge :\n   - Accordez uniquement les permissions n\u00e9cessaires aux services et aux conteneurs.\n   - Utilisez des r\u00f4les et des politiques d'acc\u00e8s granulaires.\n\n5. Chiffrez les secrets au repos et en transit :\n   - Utilisez des algorithmes de chiffrement forts (AES-256, RSA).\n   - Assurez-vous que les secrets sont chiffr\u00e9s lors du stockage et de la transmission.\n\n6. Faites r\u00e9guli\u00e8rement tourner les secrets :\n   - Changez les mots de passe et les cl\u00e9s API p\u00e9riodiquement.\n   - Automatisez le processus de rotation des secrets.\n\n7. Auditez et surveillez l'acc\u00e8s aux secrets :\n   - Mettez en place des journaux d'audit pour suivre l'acc\u00e8s aux secrets.\n   - Utilisez des outils de surveillance pour d\u00e9tecter les activit\u00e9s suspectes.\n\n8. Utilisez des r\u00e9seaux s\u00e9curis\u00e9s :\n   - Isoler les conteneurs contenant des secrets sur des r\u00e9seaux priv\u00e9s.\n   - Utilisez des VPN ou des tunnels s\u00e9curis\u00e9s pour la communication externe.\n\n9. \u00c9duquez votre \u00e9quipe :\n   - Formez les d\u00e9veloppeurs et les administrateurs syst\u00e8me sur les meilleures pratiques de s\u00e9curit\u00e9.\n   - Organisez des sessions de sensibilisation r\u00e9guli\u00e8res.\n\n10. Testez r\u00e9guli\u00e8rement votre strat\u00e9gie de gestion des secrets :\n    - Effectuez des audits de s\u00e9curit\u00e9 p\u00e9riodiques.\n    - Simulez des sc\u00e9narios d'attaque pour identifier les vuln\u00e9rabilit\u00e9s.\n\nEn suivant ces meilleures pratiques, vous pouvez consid\u00e9rablement am\u00e9liorer la s\u00e9curit\u00e9 de vos secrets Docker et r\u00e9duire les risques de fuites de donn\u00e9es sensibles dans vos environnements de conteneurs.<\/h2>\n<p>While Docker provides a secure way to manage secrets, it\u2019s crucial to follow best practices to ensure the integrity and confidentiality of your sensitive data.<\/p>\n<h3>1. Limiter l'acc\u00e8s aux secrets<\/h3>\n<p>N'accordez l'acc\u00e8s aux secrets qu'aux services sp\u00e9cifiques qui en ont besoin. \u00c9vitez d'exposer des secrets aux services qui n'en requi\u00e8rent pas.<\/p>\n<h3>2. Rotate Secrets Regularly<\/h3>\n<p>Regularly rotating your secrets helps mitigate the risk of exposure. If a <span class=\"glossaryai-tooltip glossary-term-687\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/secret\/\" target=\"_blank\">secret<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">The concept of \"secret\" encompasses information withheld from others, often for reasons of privacy, security, or confidentiality. Understanding its implications is crucial in fields such as data protection and communication theory.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/secret\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> is compromised, promptly updating it can minimize potential damage.<\/p>\n<h3>3. Utiliser les variables d'environnement avec parcimonie<\/h3>\n<p>While you may still want to utilize environment variables for non-sensitive configurations, avoid using them for storing secrets. Docker secrets provide a more secure alternative.<\/p>\n<h3>4. Monitor and Audit Secret Usage<\/h3>\n<p>Surveillez quels services ont acc\u00e8s \u00e0 quels secrets. Des audits r\u00e9guliers peuvent aider \u00e0 identifier tout acc\u00e8s non autoris\u00e9 ou des failles potentielles.<\/p>\n<h2>Cas d'utilisation avanc\u00e9s<\/h2>\n<p>Les secrets Docker peuvent \u00eatre particuli\u00e8rement utiles dans des environnements plus complexes. Voici quelques sc\u00e9narios o\u00f9 ils se montrent particuli\u00e8rement avantageux.<\/p>\n<h3>Applications Multi-Services<\/h3>\n<p>Dans les applications compos\u00e9es de plusieurs services (par exemple, une architecture microservices), les secrets peuvent \u00eatre partag\u00e9s entre les services qui en ont besoin. Par exemple, plusieurs services peuvent avoir besoin d'acc\u00e9der \u00e0 un mot de passe de base de donn\u00e9es commun. En g\u00e9rant cela via les secrets Docker, vous pouvez simplifier la gestion de la configuration.<\/p>\n<h3>Int\u00e9gration Continue\/D\u00e9ploiement Continu (CI\/CD)<\/h3>\n<p>In CI\/CD pipelines, sensitive data might be required for building, testing, or deploying applications. Docker secrets can be integrated into your pipeline to ensure that sensitive information is securely passed to your containers during deployment.<\/p>\n<h3>Secrets dynamiques<\/h3>\n<p>For advanced users, Docker secrets can be integrated with <span class=\"glossaryai-tooltip glossary-term-687\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/secret\/\" target=\"_blank\">secret<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">The concept of \"secret\" encompasses information withheld from others, often for reasons of privacy, security, or confidentiality. Understanding its implications is crucial in fields such as data protection and communication theory.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/secret\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> management tools like HashiCorp Vault or AWS Secrets Manager to dynamically create and manage secrets. This allows for automated <span class=\"glossaryai-tooltip glossary-term-687\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/secret\/\" target=\"_blank\">secret<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">The concept of \"secret\" encompasses information withheld from others, often for reasons of privacy, security, or confidentiality. Understanding its implications is crucial in fields such as data protection and communication theory.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/secret\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> generation and management, providing even greater security and flexibility.<\/p>\n<h2>Troubleshooting Common Issues<\/h2>\n<p>Lorsque vous travaillez avec les secrets Docker, vous pouvez rencontrer certains probl\u00e8mes courants. Voici quelques conseils de d\u00e9pannage :<\/p>\n<h3>Secret Not Found<\/h3>\n<p>If you receive an error that a <span class=\"glossaryai-tooltip glossary-term-687\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/secret\/\" target=\"_blank\">secret<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">The concept of \"secret\" encompasses information withheld from others, often for reasons of privacy, security, or confidentiality. Understanding its implications is crucial in fields such as data protection and communication theory.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/secret\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> cannot be found, ensure that the <span class=\"glossaryai-tooltip glossary-term-687\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/secret\/\" target=\"_blank\">secret<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">The concept of \"secret\" encompasses information withheld from others, often for reasons of privacy, security, or confidentiality. Understanding its implications is crucial in fields such as data protection and communication theory.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/secret\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> exists in the Swarm. You can verify this by running:<\/p>\n<pre><code class=\"language-bash\">docker <span class=\"glossaryai-tooltip glossary-term-687\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/secret\/\" target=\"_blank\">secret<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">The concept of \"secret\" encompasses information withheld from others, often for reasons of privacy, security, or confidentiality. Understanding its implications is crucial in fields such as data protection and communication theory.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/secret\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> ls<\/code><\/pre>\n<h3>Acc\u00e8s refus\u00e9<\/h3>\n<p>Si votre <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> cannot access a <span class=\"glossaryai-tooltip glossary-term-687\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/secret\/\" target=\"_blank\">secret<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">The concept of \"secret\" encompasses information withheld from others, often for reasons of privacy, security, or confidentiality. Understanding its implications is crucial in fields such as data protection and communication theory.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/secret\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span>, check whether the <span class=\"glossaryai-tooltip glossary-term-687\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/secret\/\" target=\"_blank\">secret<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">The concept of \"secret\" encompasses information withheld from others, often for reasons of privacy, security, or confidentiality. Understanding its implications is crucial in fields such as data protection and communication theory.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/secret\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> is properly attached to 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>. You can update 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> to include the necessary secrets if needed.<\/p>\n<h3>Le conteneur ne peut pas lire le fichier secret<\/h3>\n<p>Ensure that your application is correctly attempting to read the <span class=\"glossaryai-tooltip glossary-term-687\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/secret\/\" target=\"_blank\">secret<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">The concept of \"secret\" encompasses information withheld from others, often for reasons of privacy, security, or confidentiality. Understanding its implications is crucial in fields such as data protection and communication theory.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/secret\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> de <code>\/run\/secrets\/<\/code> r\u00e9pertoire. V\u00e9rifiez \u00e0 nouveau le chemin et assurez-vous que vous disposez des autorisations n\u00e9cessaires pour lire le fichier.<\/p>\n<h2>Conclusion<\/h2>\n<p>Docker secrets provide a secure, efficient way to manage sensitive data in containerized environments. Understanding how to create, store, and use secrets is essential for maintaining security in modern applications. By following best practices and leveraging the advanced capabilities of Docker secrets, you can ensure that your sensitive information remains protected while still being accessible to the applications that need it.<\/p>\n<p>Dans un monde de plus en plus ax\u00e9 sur les applications natives du cloud et les microservices, ma\u00eetriser les secrets Docker n'est pas seulement une bonne pratique, c'est une n\u00e9cessit\u00e9. Avec les bonnes connaissances et les bons outils, vous pouvez g\u00e9rer les donn\u00e9es sensibles en toute confiance, ce qui vous permet de vous concentrer sur le d\u00e9veloppement d'applications robustes sans craindre d'exposer des informations critiques.<\/p>","protected":false},"excerpt":{"rendered":"<p>Using secrets in Docker enhances security by managing sensitive data like passwords and <span class=\"glossaryai-tooltip glossary-term-1249\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/api\/\" target=\"_blank\">API<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">Une API, ou Interface de programmation, permet aux applications logicielles de communiquer et d'interagir entre elles. Elle d\u00e9finit des protocoles et des outils pour construire des logiciels et faciliter l'int\u00e9gration.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/api\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> Cl\u00e9s. Utilisez. <span class=\"glossaryai-tooltip glossary-term-655\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/fr\/wiki\/docker-swarm\/\" target=\"_blank\">Docker Swarm<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">Docker Swarm est un outil d'orchestration de conteneurs qui permet de g\u00e9rer un cluster de moteurs Docker. Il simplifie la mise \u00e0 l'\u00e9chelle et le d\u00e9ploiement, en assurant haute disponibilit\u00e9 et \u00e9quilibrage de charge entre les services.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/fr\/wiki\/docker-swarm\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> to create and store secrets, ensuring safe and controlled access within your containers.<\/p>","protected":false},"author":1,"featured_media":304,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21],"tags":[],"class_list":["post-216","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-security"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How do I use secrets in Docker? - 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\/security\/how-do-i-use-secrets-in-docker\/\" \/>\n<meta property=\"og:locale\" content=\"fr_FR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How do I use secrets in Docker? - Dockerpros\" \/>\n<meta property=\"og:description\" content=\"Using secrets in Docker enhances security by managing sensitive data like passwords and API keys. Utilize Docker Swarm to create and store secrets, ensuring safe and controlled access within your containers.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/dockerpros.com\/fr\/security\/how-do-i-use-secrets-in-docker\/\" \/>\n<meta property=\"og:site_name\" content=\"Dockerpros\" \/>\n<meta property=\"article:published_time\" content=\"2024-07-21T11:46:21+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/dockerpros.com\/wp-content\/uploads\/2024\/07\/how-do-i-use-secrets-in-docker_216.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=\"author\" content=\"dockerpros\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u00c9crit par\" \/>\n\t<meta name=\"twitter:data1\" content=\"dockerpros\" \/>\n\t<meta name=\"twitter:label2\" content=\"Dur\u00e9e de lecture estim\u00e9e\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/dockerpros.com\/security\/how-do-i-use-secrets-in-docker\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/dockerpros.com\/security\/how-do-i-use-secrets-in-docker\/\"},\"author\":{\"name\":\"dockerpros\",\"@id\":\"https:\/\/dockerpros.com\/#\/schema\/person\/a9b4c3d7f7a8e2b072e77d47b382a3a4\"},\"headline\":\"How do I use secrets in Docker?\",\"datePublished\":\"2024-07-21T11:46:21+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/dockerpros.com\/security\/how-do-i-use-secrets-in-docker\/\"},\"wordCount\":1119,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/dockerpros.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/dockerpros.com\/security\/how-do-i-use-secrets-in-docker\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/dockerpros.com\/wp-content\/uploads\/2024\/07\/how-do-i-use-secrets-in-docker_216.jpg\",\"articleSection\":[\"Security\"],\"inLanguage\":\"fr-FR\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/dockerpros.com\/security\/how-do-i-use-secrets-in-docker\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/dockerpros.com\/security\/how-do-i-use-secrets-in-docker\/\",\"url\":\"https:\/\/dockerpros.com\/security\/how-do-i-use-secrets-in-docker\/\",\"name\":\"How do I use secrets in Docker? - Dockerpros\",\"isPartOf\":{\"@id\":\"https:\/\/dockerpros.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/dockerpros.com\/security\/how-do-i-use-secrets-in-docker\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/dockerpros.com\/security\/how-do-i-use-secrets-in-docker\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/dockerpros.com\/wp-content\/uploads\/2024\/07\/how-do-i-use-secrets-in-docker_216.jpg\",\"datePublished\":\"2024-07-21T11:46:21+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/dockerpros.com\/security\/how-do-i-use-secrets-in-docker\/#breadcrumb\"},\"inLanguage\":\"fr-FR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/dockerpros.com\/security\/how-do-i-use-secrets-in-docker\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\/\/dockerpros.com\/security\/how-do-i-use-secrets-in-docker\/#primaryimage\",\"url\":\"https:\/\/dockerpros.com\/wp-content\/uploads\/2024\/07\/how-do-i-use-secrets-in-docker_216.jpg\",\"contentUrl\":\"https:\/\/dockerpros.com\/wp-content\/uploads\/2024\/07\/how-do-i-use-secrets-in-docker_216.jpg\",\"width\":800,\"height\":600,\"caption\":\"how-do-i-use-secrets-in-docker-2\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/dockerpros.com\/security\/how-do-i-use-secrets-in-docker\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/dockerpros.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How do I use secrets in Docker?\"}]},{\"@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\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/dockerpros.com\/#\/schema\/person\/a9b4c3d7f7a8e2b072e77d47b382a3a4\",\"name\":\"dockerpros\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\/\/dockerpros.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/dockerpros.com\/wp-content\/litespeed\/avatar\/d13b9d4f101de1a7535b404e0c59affd.jpg?ver=1779972442\",\"contentUrl\":\"https:\/\/dockerpros.com\/wp-content\/litespeed\/avatar\/d13b9d4f101de1a7535b404e0c59affd.jpg?ver=1779972442\",\"caption\":\"dockerpros\"},\"sameAs\":[\"https:\/\/dockerpros.com\/\"],\"url\":\"https:\/\/dockerpros.com\/fr\/author\/dockerpros\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How do I use secrets in Docker? - 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\/security\/how-do-i-use-secrets-in-docker\/","og_locale":"fr_FR","og_type":"article","og_title":"How do I use secrets in Docker? - Dockerpros","og_description":"Using secrets in Docker enhances security by managing sensitive data like passwords and API keys. Utilize Docker Swarm to create and store secrets, ensuring safe and controlled access within your containers.","og_url":"https:\/\/dockerpros.com\/fr\/security\/how-do-i-use-secrets-in-docker\/","og_site_name":"Dockerpros","article_published_time":"2024-07-21T11:46:21+00:00","og_image":[{"width":800,"height":600,"url":"https:\/\/dockerpros.com\/wp-content\/uploads\/2024\/07\/how-do-i-use-secrets-in-docker_216.jpg","type":"image\/jpeg"}],"author":"dockerpros","twitter_card":"summary_large_image","twitter_misc":{"\u00c9crit par":"dockerpros","Dur\u00e9e de lecture estim\u00e9e":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/dockerpros.com\/security\/how-do-i-use-secrets-in-docker\/#article","isPartOf":{"@id":"https:\/\/dockerpros.com\/security\/how-do-i-use-secrets-in-docker\/"},"author":{"name":"dockerpros","@id":"https:\/\/dockerpros.com\/#\/schema\/person\/a9b4c3d7f7a8e2b072e77d47b382a3a4"},"headline":"How do I use secrets in Docker?","datePublished":"2024-07-21T11:46:21+00:00","mainEntityOfPage":{"@id":"https:\/\/dockerpros.com\/security\/how-do-i-use-secrets-in-docker\/"},"wordCount":1119,"commentCount":0,"publisher":{"@id":"https:\/\/dockerpros.com\/#organization"},"image":{"@id":"https:\/\/dockerpros.com\/security\/how-do-i-use-secrets-in-docker\/#primaryimage"},"thumbnailUrl":"https:\/\/dockerpros.com\/wp-content\/uploads\/2024\/07\/how-do-i-use-secrets-in-docker_216.jpg","articleSection":["Security"],"inLanguage":"fr-FR","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/dockerpros.com\/security\/how-do-i-use-secrets-in-docker\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/dockerpros.com\/security\/how-do-i-use-secrets-in-docker\/","url":"https:\/\/dockerpros.com\/security\/how-do-i-use-secrets-in-docker\/","name":"How do I use secrets in Docker? - Dockerpros","isPartOf":{"@id":"https:\/\/dockerpros.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/dockerpros.com\/security\/how-do-i-use-secrets-in-docker\/#primaryimage"},"image":{"@id":"https:\/\/dockerpros.com\/security\/how-do-i-use-secrets-in-docker\/#primaryimage"},"thumbnailUrl":"https:\/\/dockerpros.com\/wp-content\/uploads\/2024\/07\/how-do-i-use-secrets-in-docker_216.jpg","datePublished":"2024-07-21T11:46:21+00:00","breadcrumb":{"@id":"https:\/\/dockerpros.com\/security\/how-do-i-use-secrets-in-docker\/#breadcrumb"},"inLanguage":"fr-FR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/dockerpros.com\/security\/how-do-i-use-secrets-in-docker\/"]}]},{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/dockerpros.com\/security\/how-do-i-use-secrets-in-docker\/#primaryimage","url":"https:\/\/dockerpros.com\/wp-content\/uploads\/2024\/07\/how-do-i-use-secrets-in-docker_216.jpg","contentUrl":"https:\/\/dockerpros.com\/wp-content\/uploads\/2024\/07\/how-do-i-use-secrets-in-docker_216.jpg","width":800,"height":600,"caption":"how-do-i-use-secrets-in-docker-2"},{"@type":"BreadcrumbList","@id":"https:\/\/dockerpros.com\/security\/how-do-i-use-secrets-in-docker\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/dockerpros.com\/"},{"@type":"ListItem","position":2,"name":"How do I use secrets in Docker?"}]},{"@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\/"}},{"@type":"Person","@id":"https:\/\/dockerpros.com\/#\/schema\/person\/a9b4c3d7f7a8e2b072e77d47b382a3a4","name":"professionnels Docker","image":{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/dockerpros.com\/#\/schema\/person\/image\/","url":"https:\/\/dockerpros.com\/wp-content\/litespeed\/avatar\/d13b9d4f101de1a7535b404e0c59affd.jpg?ver=1779972442","contentUrl":"https:\/\/dockerpros.com\/wp-content\/litespeed\/avatar\/d13b9d4f101de1a7535b404e0c59affd.jpg?ver=1779972442","caption":"dockerpros"},"sameAs":["https:\/\/dockerpros.com\/"],"url":"https:\/\/dockerpros.com\/fr\/author\/dockerpros\/"}]}},"_links":{"self":[{"href":"https:\/\/dockerpros.com\/fr\/wp-json\/wp\/v2\/posts\/216","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dockerpros.com\/fr\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dockerpros.com\/fr\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dockerpros.com\/fr\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dockerpros.com\/fr\/wp-json\/wp\/v2\/comments?post=216"}],"version-history":[{"count":0,"href":"https:\/\/dockerpros.com\/fr\/wp-json\/wp\/v2\/posts\/216\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dockerpros.com\/fr\/wp-json\/wp\/v2\/media\/304"}],"wp:attachment":[{"href":"https:\/\/dockerpros.com\/fr\/wp-json\/wp\/v2\/media?parent=216"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dockerpros.com\/fr\/wp-json\/wp\/v2\/categories?post=216"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dockerpros.com\/fr\/wp-json\/wp\/v2\/tags?post=216"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}