{"id":1164,"date":"2024-07-22T20:44:28","date_gmt":"2024-07-22T20:44:28","guid":{"rendered":"https:\/\/dockerpros.com\/?post_type=glossary&#038;p=1164"},"modified":"2024-07-22T20:50:54","modified_gmt":"2024-07-22T20:50:54","slug":"docker-netzwerk-untersuchen","status":"publish","type":"glossary","link":"https:\/\/dockerpros.com\/de\/wiki\/docker-network-inspect\/","title":{"rendered":"Docker Network Inspect"},"content":{"rendered":"<h1>Understanding Docker Network Inspect: An In-Depth Guide<\/h1>\n<p>Docker is a platform that enables developers to build, ship, and <span class=\"glossaryai-tooltip glossary-term-672\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/de\/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\/de\/wiki\/run\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> applications in containers. One of the critical components of Docker is networking, which facilitates communication between containers, the host, and external systems. Docker provides several commands to manage and inspect these networks, and one of the most essential commands for <span class=\"glossaryai-tooltip glossary-term-661\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/de\/wiki\/network\/\" target=\"_blank\">network<\/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\/de\/wiki\/network\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> administrators and developers alike is <code><span class=\"glossaryai-tooltip glossary-term-699\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/de\/wiki\/docker-network\/\" target=\"_blank\">docker network<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">Docker Network enables seamless communication between containers in isolated environments. It supports various drivers, such as bridge and overlay, allowing flexible networking configurations tailored to application needs.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/de\/wiki\/docker-network\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> inspect<\/code>. This command allows users to retrieve detailed information about the various networks Docker manages, offering insights into their configurations, connected containers, and much more.<\/p>\n<h2>The Basics of Docker Networking<\/h2>\n<p>Before diving into <code><span class=\"glossaryai-tooltip glossary-term-699\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/de\/wiki\/docker-network\/\" target=\"_blank\">docker network<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">Docker Network enables seamless communication between containers in isolated environments. It supports various drivers, such as bridge and overlay, allowing flexible networking configurations tailored to application needs.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/de\/wiki\/docker-network\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> inspect<\/code>, it is vital to understand the basics of Docker networking. Docker networking allows containers to communicate with each other and with the external world. There are several types of Docker networks, including:<\/p>\n<ol>\n<li>\n<p><strong><span class=\"glossaryai-tooltip glossary-term-662\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/de\/wiki\/bridge-network\/\" target=\"_blank\">Bridge Network<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">Bridge Network facilitates interoperability between various blockchain ecosystems, enabling seamless asset transfers and communication. Its architecture enhances scalability and user accessibility across networks.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/de\/wiki\/bridge-network\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span><\/strong>: This is the default <span class=\"glossaryai-tooltip glossary-term-661\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/de\/wiki\/network\/\" target=\"_blank\">network<\/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\/de\/wiki\/network\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> type that Docker creates when you install it. It allows containers to communicate with each other on the same host.<\/p>\n<\/li>\n<li>\n<p><strong><span class=\"glossaryai-tooltip glossary-term-664\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/de\/wiki\/host-network\/\" target=\"_blank\">Host Network<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">A host network refers to the underlying infrastructure that supports communication between devices in a computing environment. It encompasses protocols, hardware, and software facilitating data exchange.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/de\/wiki\/host-network\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span><\/strong>: Containers share the host&#8217;s <span class=\"glossaryai-tooltip glossary-term-661\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/de\/wiki\/network\/\" target=\"_blank\">network<\/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\/de\/wiki\/network\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> <span class=\"glossaryai-tooltip glossary-term-682\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/de\/wiki\/stack\/\" target=\"_blank\">stack<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">A stack is a data structure that operates on a Last In, First Out (LIFO) principle, where the most recently added element is the first to be removed. It supports two primary operations: push and pop.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/de\/wiki\/stack\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span>, which can be useful for performance-sensitive applications.<\/p>\n<\/li>\n<li>\n<p><strong><span class=\"glossaryai-tooltip glossary-term-663\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/de\/wiki\/overlay-network\/\" target=\"_blank\">Overlay Network<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">An overlay network is a virtual network built on top of an existing physical network. It enables efficient communication and resource sharing, enhancing scalability and flexibility while abstracting underlying infrastructure complexities.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/de\/wiki\/overlay-network\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span><\/strong>: Designed for multi-host networking, overlay networks allow containers running on different Docker hosts to communicate as if they were on the same <span class=\"glossaryai-tooltip glossary-term-661\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/de\/wiki\/network\/\" target=\"_blank\">network<\/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\/de\/wiki\/network\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span>.<\/p>\n<\/li>\n<li>\n<p><strong>Macvlan <span class=\"glossaryai-tooltip glossary-term-661\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/de\/wiki\/network\/\" target=\"_blank\">Network<\/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\/de\/wiki\/network\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span><\/strong>: This <span class=\"glossaryai-tooltip glossary-term-661\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/de\/wiki\/network\/\" target=\"_blank\">network<\/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\/de\/wiki\/network\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> type allows you to assign a MAC address to a <span class=\"glossaryai-tooltip glossary-term-650\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/de\/wiki\/container\/\" target=\"_blank\">container<\/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\/de\/wiki\/container\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span>, making it appear as a physical device on the <span class=\"glossaryai-tooltip glossary-term-661\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/de\/wiki\/network\/\" target=\"_blank\">network<\/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\/de\/wiki\/network\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span>.<\/p>\n<\/li>\n<li>\n<p><strong>None <span class=\"glossaryai-tooltip glossary-term-661\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/de\/wiki\/network\/\" target=\"_blank\">Network<\/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\/de\/wiki\/network\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span><\/strong>: This type disables all networking for the <span class=\"glossaryai-tooltip glossary-term-650\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/de\/wiki\/container\/\" target=\"_blank\">container<\/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\/de\/wiki\/container\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span>, which can be useful for certain applications.<\/p>\n<\/li>\n<\/ol>\n<p>Each of these <span class=\"glossaryai-tooltip glossary-term-661\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/de\/wiki\/network\/\" target=\"_blank\">network<\/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\/de\/wiki\/network\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> types serves different use cases, and understanding their characteristics is essential for effective <span class=\"glossaryai-tooltip glossary-term-650\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/de\/wiki\/container\/\" target=\"_blank\">container<\/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\/de\/wiki\/container\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> management.<\/p>\n<h2>Using <code><span class=\"glossaryai-tooltip glossary-term-699\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/de\/wiki\/docker-network\/\" target=\"_blank\">docker network<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">Docker Network enables seamless communication between containers in isolated environments. It supports various drivers, such as bridge and overlay, allowing flexible networking configurations tailored to application needs.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/de\/wiki\/docker-network\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> inspect<\/code><\/h2>\n<p>The <code><span class=\"glossaryai-tooltip glossary-term-699\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/de\/wiki\/docker-network\/\" target=\"_blank\">docker network<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">Docker Network enables seamless communication between containers in isolated environments. It supports various drivers, such as bridge and overlay, allowing flexible networking configurations tailored to application needs.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/de\/wiki\/docker-network\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> inspect<\/code> command provides a comprehensive view of a specific Docker network\u2019s configuration. When executed, it returns a JSON object that includes detailed information about the <span class=\"glossaryai-tooltip glossary-term-661\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/de\/wiki\/network\/\" target=\"_blank\">network<\/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\/de\/wiki\/network\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span>, such as its name, ID, driver, subnet configuration, and connected containers.<\/p>\n<h3>Basic Syntax<\/h3>\n<p>The basic syntax of the command is straightforward:<\/p>\n<pre><code class=\"language-bash\"><span class=\"glossaryai-tooltip glossary-term-699\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/de\/wiki\/docker-network\/\" target=\"_blank\">docker network<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">Docker Network enables seamless communication between containers in isolated environments. It supports various drivers, such as bridge and overlay, allowing flexible networking configurations tailored to application needs.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/de\/wiki\/docker-network\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> inspect <\/code><\/pre>\n<p>Here, &#8220; represents either the name or ID of the <span class=\"glossaryai-tooltip glossary-term-699\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/de\/wiki\/docker-network\/\" target=\"_blank\">Docker network<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">Docker Network enables seamless communication between containers in isolated environments. It supports various drivers, such as bridge and overlay, allowing flexible networking configurations tailored to application needs.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/de\/wiki\/docker-network\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> you want to inspect.<\/p>\n<h3>Example of Inspecting a Docker Network<\/h3>\n<p>Let\u2019s consider an example where we want to inspect a <span class=\"glossaryai-tooltip glossary-term-662\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/de\/wiki\/bridge-network\/\" target=\"_blank\">bridge network<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">Bridge Network facilitates interoperability between various blockchain ecosystems, enabling seamless asset transfers and communication. Its architecture enhances scalability and user accessibility across networks.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/de\/wiki\/bridge-network\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> named <code>my_bridge_network<\/code>. The command would look like this:<\/p>\n<pre><code class=\"language-bash\"><span class=\"glossaryai-tooltip glossary-term-699\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/de\/wiki\/docker-network\/\" target=\"_blank\">docker network<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">Docker Network enables seamless communication between containers in isolated environments. It supports various drivers, such as bridge and overlay, allowing flexible networking configurations tailored to application needs.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/de\/wiki\/docker-network\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> inspect my_bridge_network<\/code><\/pre>\n<p>The output will provide JSON formatted data with various keys and values, which we will break down in the next sections.<\/p>\n<h2>Breaking Down the Output<\/h2>\n<p>The output of the <code><span class=\"glossaryai-tooltip glossary-term-699\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/de\/wiki\/docker-network\/\" target=\"_blank\">docker network<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">Docker Network enables seamless communication between containers in isolated environments. It supports various drivers, such as bridge and overlay, allowing flexible networking configurations tailored to application needs.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/de\/wiki\/docker-network\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> inspect<\/code> command can be verbose, but understanding its structure will empower you to make informed decisions about your Docker networks. Here\u2019s a breakdown of the key components of the output:<\/p>\n<h3>1. Basic Network Information<\/h3>\n<p>The first section of the output includes general information about the <span class=\"glossaryai-tooltip glossary-term-661\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/de\/wiki\/network\/\" target=\"_blank\">network<\/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\/de\/wiki\/network\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span>:<\/p>\n<ul>\n<li><strong>Name<\/strong>: The name of the <span class=\"glossaryai-tooltip glossary-term-661\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/de\/wiki\/network\/\" target=\"_blank\">network<\/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\/de\/wiki\/network\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span>.<\/li>\n<li><strong>Id<\/strong>: A unique identifier for the <span class=\"glossaryai-tooltip glossary-term-661\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/de\/wiki\/network\/\" target=\"_blank\">network<\/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\/de\/wiki\/network\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span>.<\/li>\n<li><strong>Created<\/strong>: The timestamp of when the <span class=\"glossaryai-tooltip glossary-term-661\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/de\/wiki\/network\/\" target=\"_blank\">network<\/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\/de\/wiki\/network\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> was created.<\/li>\n<li><strong>Scope<\/strong>: Indicates whether the <span class=\"glossaryai-tooltip glossary-term-661\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/de\/wiki\/network\/\" target=\"_blank\">network<\/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\/de\/wiki\/network\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> is local, global, or swarm scope (for <span class=\"glossaryai-tooltip glossary-term-655\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/de\/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 is a container orchestration tool that enables the management of a cluster of Docker engines. It simplifies scaling and deployment, ensuring high availability and load balancing across services.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/de\/wiki\/docker-swarm\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span>).<\/li>\n<li><strong>Driver<\/strong>: The driver used for the <span class=\"glossaryai-tooltip glossary-term-661\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/de\/wiki\/network\/\" target=\"_blank\">network<\/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\/de\/wiki\/network\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span>, e.g., bridge, overlay, or host.<\/li>\n<\/ul>\n<h3>2. Network Configuration<\/h3>\n<p>The next section provides details about the <span class=\"glossaryai-tooltip glossary-term-661\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/de\/wiki\/network\/\" target=\"_blank\">network<\/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\/de\/wiki\/network\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> configuration, including:<\/p>\n<ul>\n<li><strong>IPAM<\/strong>: IP Address Management settings, which include:\n<ul>\n<li><strong>Driver<\/strong>: Typically, this will be <code>default<\/code>.<\/li>\n<li><strong><span class=\"glossaryai-tooltip glossary-term-688\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/de\/wiki\/config\/\" target=\"_blank\">Config<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">Config refers to configuration settings that determine how software or hardware operates. It encompasses parameters that influence performance, security, and functionality, enabling tailored user experiences.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/de\/wiki\/config\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span><\/strong>: A list of subnets and gateway configurations. This includes:<\/li>\n<li><strong>Subnet<\/strong>: The subnet range allocated for the <span class=\"glossaryai-tooltip glossary-term-661\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/de\/wiki\/network\/\" target=\"_blank\">network<\/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\/de\/wiki\/network\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span>.<\/li>\n<li><strong>Gateway<\/strong>: The gateway IP address for the <span class=\"glossaryai-tooltip glossary-term-661\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/de\/wiki\/network\/\" target=\"_blank\">network<\/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\/de\/wiki\/network\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span>.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>For example, the IPAM section could look like this:<\/p>\n<pre><code class=\"language-json\">\"IPAM\": {\n  \"Driver\": \"default\",\n  \"Config\": [\n    {\n      \"Subnet\": \"172.18.0.0\/16\",\n      \"Gateway\": \"172.18.0.1\"\n    }\n  ]\n}<\/code><\/pre>\n<h3>3. Connected Containers<\/h3>\n<p>One of the most critical sections of the output is the connected containers. This section provides an array of <span class=\"glossaryai-tooltip glossary-term-650\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/de\/wiki\/container\/\" target=\"_blank\">container<\/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\/de\/wiki\/container\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> objects that are connected to the <span class=\"glossaryai-tooltip glossary-term-661\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/de\/wiki\/network\/\" target=\"_blank\">network<\/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\/de\/wiki\/network\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span>. Each <span class=\"glossaryai-tooltip glossary-term-650\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/de\/wiki\/container\/\" target=\"_blank\">container<\/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\/de\/wiki\/container\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> object includes:<\/p>\n<ul>\n<li><strong>Name<\/strong>: The name of the <span class=\"glossaryai-tooltip glossary-term-650\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/de\/wiki\/container\/\" target=\"_blank\">container<\/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\/de\/wiki\/container\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span>.<\/li>\n<li><strong>EndpointID<\/strong>: A unique identifier for the container&#8217;s endpoint within the <span class=\"glossaryai-tooltip glossary-term-661\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/de\/wiki\/network\/\" target=\"_blank\">network<\/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\/de\/wiki\/network\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span>.<\/li>\n<li><strong>MacAddress<\/strong>: The MAC address assigned to the <span class=\"glossaryai-tooltip glossary-term-650\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/de\/wiki\/container\/\" target=\"_blank\">container<\/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\/de\/wiki\/container\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span>.<\/li>\n<li><strong>IPv4Address<\/strong>: The IPv4 address assigned to the <span class=\"glossaryai-tooltip glossary-term-650\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/de\/wiki\/container\/\" target=\"_blank\">container<\/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\/de\/wiki\/container\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span>.<\/li>\n<li><strong>IPv6Address<\/strong>: The IPv6 address assigned to the <span class=\"glossaryai-tooltip glossary-term-650\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/de\/wiki\/container\/\" target=\"_blank\">container<\/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\/de\/wiki\/container\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span>, if applicable.<\/li>\n<\/ul>\n<p>Here\u2019s what this section might look like:<\/p>\n<pre><code class=\"language-json\">\"Containers\": {\n  \"abcdef123456\": {\n    \"Name\": \"my_container\",\n    \"EndpointID\": \"123456abcdef\",\n    \"MacAddress\": \"02:42:ac:12:00:02\",\n    \"IPv4Address\": \"172.18.0.2\/16\",\n    \"IPv6Address\": \"\"\n  }\n}<\/code><\/pre>\n<h2>Real-World Use Cases for <code><span class=\"glossaryai-tooltip glossary-term-699\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/de\/wiki\/docker-network\/\" target=\"_blank\">docker network<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">Docker Network enables seamless communication between containers in isolated environments. It supports various drivers, such as bridge and overlay, allowing flexible networking configurations tailored to application needs.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/de\/wiki\/docker-network\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> inspect<\/code><\/h2>\n<p>Understanding how to use <code><span class=\"glossaryai-tooltip glossary-term-699\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/de\/wiki\/docker-network\/\" target=\"_blank\">docker network<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">Docker Network enables seamless communication between containers in isolated environments. It supports various drivers, such as bridge and overlay, allowing flexible networking configurations tailored to application needs.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/de\/wiki\/docker-network\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> inspect<\/code> and interpret its output is invaluable. Here are several real-world scenarios where this command proves beneficial:<\/p>\n<h3>1. Troubleshooting Network Issues<\/h3>\n<p>When containers can\u2019t communicate with each other, <code><span class=\"glossaryai-tooltip glossary-term-699\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/de\/wiki\/docker-network\/\" target=\"_blank\">docker network<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">Docker Network enables seamless communication between containers in isolated environments. It supports various drivers, such as bridge and overlay, allowing flexible networking configurations tailored to application needs.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/de\/wiki\/docker-network\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> inspect<\/code> is a go-to command for debugging. By inspecting the <span class=\"glossaryai-tooltip glossary-term-661\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/de\/wiki\/network\/\" target=\"_blank\">network<\/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\/de\/wiki\/network\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span>, you can verify the connected containers, their IP addresses, and whether they are on the correct subnet.<\/p>\n<h3>2. Security Auditing<\/h3>\n<p>In a production environment, ensuring that containers are isolated and only accessible to the necessary services is crucial. By inspecting the <span class=\"glossaryai-tooltip glossary-term-661\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/de\/wiki\/network\/\" target=\"_blank\">network<\/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\/de\/wiki\/network\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span>, you can confirm which containers are connected and whether they have the appropriate configurations, helping to identify potential security risks.<\/p>\n<h3>3. Network Planning<\/h3>\n<p>When designing a new application architecture, you may need to create custom networks. Using <code><span class=\"glossaryai-tooltip glossary-term-699\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/de\/wiki\/docker-network\/\" target=\"_blank\">docker network<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">Docker Network enables seamless communication between containers in isolated environments. It supports various drivers, such as bridge and overlay, allowing flexible networking configurations tailored to application needs.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/de\/wiki\/docker-network\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> inspect<\/code>, you can gather information about existing networks to inform your design, ensuring that you avoid conflicts and utilize the appropriate subnetting schemes.<\/p>\n<h3>4. Integration with CI\/CD Pipelines<\/h3>\n<p>In Continuous Integration and Continuous Deployment (CI\/CD) scenarios, automated scripts may need to inspect Docker networks to validate that the necessary services are running and accessible for testing and deployment purposes.<\/p>\n<h2>Best Practices for Docker Networking<\/h2>\n<p>Effective management of Docker networks can greatly enhance the performance and security of your containerized applications. Here are some best practices:<\/p>\n<h3>1. Use Custom Networks<\/h3>\n<p>While Docker provides default networks, creating custom networks allows you to tailor your networking setup to your application\u2019s needs. Custom networks provide better isolation and improve security.<\/p>\n<h3>2. Document Network Configurations<\/h3>\n<p>Maintaining clear documentation of your <span class=\"glossaryai-tooltip glossary-term-699\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/de\/wiki\/docker-network\/\" target=\"_blank\">Docker network<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">Docker Network enables seamless communication between containers in isolated environments. It supports various drivers, such as bridge and overlay, allowing flexible networking configurations tailored to application needs.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/de\/wiki\/docker-network\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> configurations can be invaluable for future troubleshooting and <span class=\"glossaryai-tooltip glossary-term-661\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/de\/wiki\/network\/\" target=\"_blank\">network<\/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\/de\/wiki\/network\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> management. This includes keeping records of <span class=\"glossaryai-tooltip glossary-term-661\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/de\/wiki\/network\/\" target=\"_blank\">network<\/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\/de\/wiki\/network\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> names, configurations, and their purposes.<\/p>\n<h3>3. Monitor Network Performance<\/h3>\n<p>Keep an eye on the performance and resource utilization of your Docker networks. Use monitoring tools to check latency and throughput, which helps identify potential bottlenecks or issues.<\/p>\n<h3>4. Regularly Review Access Control<\/h3>\n<p>For networks that require strict access control, regularly review which containers are connected and their access levels. Implement <span class=\"glossaryai-tooltip glossary-term-661\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/de\/wiki\/network\/\" target=\"_blank\">network<\/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\/de\/wiki\/network\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> policies that restrict traffic between containers as necessary.<\/p>\n<h2>Advanced Options in <code><span class=\"glossaryai-tooltip glossary-term-699\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/de\/wiki\/docker-network\/\" target=\"_blank\">docker network<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">Docker Network enables seamless communication between containers in isolated environments. It supports various drivers, such as bridge and overlay, allowing flexible networking configurations tailored to application needs.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/de\/wiki\/docker-network\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> inspect<\/code><\/h2>\n<p>In addition to the basic usage of <code><span class=\"glossaryai-tooltip glossary-term-699\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/de\/wiki\/docker-network\/\" target=\"_blank\">docker network<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">Docker Network enables seamless communication between containers in isolated environments. It supports various drivers, such as bridge and overlay, allowing flexible networking configurations tailored to application needs.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/de\/wiki\/docker-network\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> inspect<\/code>, there are some advanced options that you can leverage:<\/p>\n<h3>1. JSON Output Formatting<\/h3>\n<p>For scripts and automated processes, you might want to filter or format the output. By using tools like <code>jq<\/code>, you can extract specific attributes from the JSON output. For example:<\/p>\n<pre><code class=\"language-bash\"><span class=\"glossaryai-tooltip glossary-term-699\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/de\/wiki\/docker-network\/\" target=\"_blank\">docker network<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">Docker Network enables seamless communication between containers in isolated environments. It supports various drivers, such as bridge and overlay, allowing flexible networking configurations tailored to application needs.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/de\/wiki\/docker-network\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> inspect my_bridge_network | jq '.[0].Containers'<\/code><\/pre>\n<p>This command retrieves only the connected containers for a specific <span class=\"glossaryai-tooltip glossary-term-661\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/de\/wiki\/network\/\" target=\"_blank\">network<\/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\/de\/wiki\/network\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span>.<\/p>\n<h3>2. Integrating with Other Docker Commands<\/h3>\n<p>The output from <code><span class=\"glossaryai-tooltip glossary-term-699\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/de\/wiki\/docker-network\/\" target=\"_blank\">docker network<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">Docker Network enables seamless communication between containers in isolated environments. It supports various drivers, such as bridge and overlay, allowing flexible networking configurations tailored to application needs.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/de\/wiki\/docker-network\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> inspect<\/code> can be utilized in conjunction with other Docker commands. For instance, you can use <code>docker ps<\/code> to cross-reference running containers with networks to check if expected services are up and running.<\/p>\n<h3>3. Network Policies<\/h3>\n<p>If you\u2019re using <span class=\"glossaryai-tooltip glossary-term-655\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/de\/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 is a container orchestration tool that enables the management of a cluster of Docker engines. It simplifies scaling and deployment, ensuring high availability and load balancing across services.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/de\/wiki\/docker-swarm\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> or <span class=\"glossaryai-tooltip glossary-term-656\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/de\/wiki\/kubernetes\/\" target=\"_blank\">Kubernetes<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">Kubernetes is an open-source container orchestration platform that automates the deployment, scaling, and management of containerized applications, enhancing resource efficiency and resilience.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/de\/wiki\/kubernetes\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span>, you can implement <span class=\"glossaryai-tooltip glossary-term-661\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/de\/wiki\/network\/\" target=\"_blank\">network<\/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\/de\/wiki\/network\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> policies that define how groups of containers interact with one another. Understanding the <span class=\"glossaryai-tooltip glossary-term-661\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/de\/wiki\/network\/\" target=\"_blank\">network<\/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\/de\/wiki\/network\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> configuration through <code><span class=\"glossaryai-tooltip glossary-term-699\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/de\/wiki\/docker-network\/\" target=\"_blank\">docker network<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">Docker Network enables seamless communication between containers in isolated environments. It supports various drivers, such as bridge and overlay, allowing flexible networking configurations tailored to application needs.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/de\/wiki\/docker-network\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> inspect<\/code> can help you configure these policies effectively.<\/p>\n<h2>Conclusion<\/h2>\n<p>The <code><span class=\"glossaryai-tooltip glossary-term-699\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/de\/wiki\/docker-network\/\" target=\"_blank\">docker network<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">Docker Network enables seamless communication between containers in isolated environments. It supports various drivers, such as bridge and overlay, allowing flexible networking configurations tailored to application needs.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/de\/wiki\/docker-network\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> inspect<\/code> command is an essential tool in the Docker networking suite. It provides critical insights into the configurations and statuses of Docker networks, allowing users to troubleshoot issues, enhance security, and streamline application management. By understanding the structure of the output and utilizing the information effectively, developers and <span class=\"glossaryai-tooltip glossary-term-661\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/de\/wiki\/network\/\" target=\"_blank\">network<\/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\/de\/wiki\/network\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> administrators can ensure that their containerized applications <span class=\"glossaryai-tooltip glossary-term-672\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/de\/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\/de\/wiki\/run\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> smoothly and securely.<\/p>\n<p>As Docker continues to evolve, mastering networking essentials remains pivotal for building robust, scalable applications. Proper <span class=\"glossaryai-tooltip glossary-term-661\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/de\/wiki\/network\/\" target=\"_blank\">network<\/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\/de\/wiki\/network\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> management is not just about connecting containers; it\u2019s about creating a cohesive infrastructure that supports your application\u2019s needs while maintaining performance and security.<\/p>","protected":false},"excerpt":{"rendered":"<p><span class=\"glossaryai-tooltip glossary-term-699\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/de\/wiki\/docker-network\/\" target=\"_blank\">Docker Network<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">Docker-Netzwerke erm\u00f6glichen eine nahtlose Kommunikation zwischen Containern in isolierten Umgebungen. Sie unterst\u00fctzen verschiedene Treiber wie Bridge und Overlay, die flexible Netzwerkkonfigurationen erm\u00f6glichen, die auf die Anforderungen der Anwendung zugeschnitten sind.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/de\/wiki\/docker-network\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> Inspect bietet detaillierte Einblicke in die Konfiguration eines Docker-Netzwerks und die verbundenen Container. Dieser Befehl ist unerl\u00e4sslich f\u00fcr die Fehlerbehebung. <span class=\"glossaryai-tooltip glossary-term-661\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/de\/wiki\/network\/\" target=\"_blank\">network<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">Ein Netzwerk im Bereich der Informatik bezeichnet eine Sammlung miteinander verbundener Ger\u00e4te, die miteinander kommunizieren und Ressourcen teilen. Es erm\u00f6glicht den Datenaustausch, erleichtert die Zusammenarbeit und verbessert die betriebliche Effizienz.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/de\/wiki\/network\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> issues and optimizing <span class=\"glossaryai-tooltip glossary-term-650\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/de\/wiki\/container\/\" target=\"_blank\">Beh\u00e4lter<\/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\/de\/wiki\/container\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> Kommunikation.<\/p>","protected":false},"author":1,"featured_media":1645,"parent":0,"template":"","glossary-cat":[],"class_list":["post-1164","glossary","type-glossary","status-publish","has-post-thumbnail","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Docker Network Inspect - 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\/de\/wiki\/docker-netzwerk-untersuchen\/\" \/>\n<meta property=\"og:locale\" content=\"de_DE\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Docker Network Inspect - Dockerpros\" \/>\n<meta property=\"og:description\" content=\"Docker Network Inspect provides detailed insights into a Docker network&#039;s configuration and connected containers. This command is essential for troubleshooting network issues and optimizing container communication.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/dockerpros.com\/de\/wiki\/docker-netzwerk-untersuchen\/\" \/>\n<meta property=\"og:site_name\" content=\"Dockerpros\" \/>\n<meta property=\"article:modified_time\" content=\"2024-07-22T20:50:54+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/dockerpros.com\/wp-content\/uploads\/2024\/07\/docker-network-inspect_1164.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=\"Gesch\u00e4tzte Lesezeit\" \/>\n\t<meta name=\"twitter:data1\" content=\"6\u00a0Minuten\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/dockerpros.com\/wiki\/docker-network-inspect\/\",\"url\":\"https:\/\/dockerpros.com\/wiki\/docker-network-inspect\/\",\"name\":\"Docker Network Inspect - Dockerpros\",\"isPartOf\":{\"@id\":\"https:\/\/dockerpros.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/dockerpros.com\/wiki\/docker-network-inspect\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/dockerpros.com\/wiki\/docker-network-inspect\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/dockerpros.com\/wp-content\/uploads\/2024\/07\/docker-network-inspect_1164.jpg\",\"datePublished\":\"2024-07-22T20:44:28+00:00\",\"dateModified\":\"2024-07-22T20:50:54+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/dockerpros.com\/wiki\/docker-network-inspect\/#breadcrumb\"},\"inLanguage\":\"de\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/dockerpros.com\/wiki\/docker-network-inspect\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"de\",\"@id\":\"https:\/\/dockerpros.com\/wiki\/docker-network-inspect\/#primaryimage\",\"url\":\"https:\/\/dockerpros.com\/wp-content\/uploads\/2024\/07\/docker-network-inspect_1164.jpg\",\"contentUrl\":\"https:\/\/dockerpros.com\/wp-content\/uploads\/2024\/07\/docker-network-inspect_1164.jpg\",\"width\":800,\"height\":600,\"caption\":\"docker-network-inspect-2\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/dockerpros.com\/wiki\/docker-network-inspect\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/dockerpros.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Glossary\",\"item\":\"https:\/\/dockerpros.com\/fr\/wiki\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Docker Network Inspect\"}]},{\"@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\":\"de\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/dockerpros.com\/#organization\",\"name\":\"Dockerpros\",\"url\":\"https:\/\/dockerpros.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"de\",\"@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":"Docker Network Inspect - Dockerpros\n\nIn diesem Artikel werden wir uns mit dem Befehl \"docker network inspect\" befassen. Dieser Befehl erm\u00f6glicht es uns, detaillierte Informationen \u00fcber ein bestimmtes Docker-Netzwerk zu erhalten. Wir werden die Syntax des Befehls, seine Verwendung und einige praktische Beispiele untersuchen.\n\nSyntax des Befehls \"docker network inspect\"\n\nDie grundlegende Syntax des Befehls lautet wie folgt:\n\n```\ndocker network inspect [OPTIONS] NETWORK [NETWORK...]\n```\n\nHierbei ist NETWORK der Name oder die ID des Netzwerks, das wir untersuchen m\u00f6chten. Wir k\u00f6nnen auch mehrere Netzwerke angeben, indem wir sie durch Leerzeichen trennen.\n\nVerwendung des Befehls \"docker network inspect\"\n\nDer Befehl \"docker network inspect\" wird verwendet, um detaillierte Informationen \u00fcber ein Docker-Netzwerk zu erhalten. Dies umfasst Informationen wie den Namen des Netzwerks, die ID, den Treiber, den Subnetzbereich, die Gateway-IP-Adresse und vieles mehr.\n\nBeispiel 1: Inspektion eines einzelnen Netzwerks\n\nAngenommen, wir haben ein Netzwerk mit dem Namen \"my_network\" erstellt. Um detaillierte Informationen \u00fcber dieses Netzwerk zu erhalten, k\u00f6nnen wir den folgenden Befehl verwenden:\n\n```\ndocker network inspect my_network\n```\n\nDieser Befehl gibt eine JSON-Ausgabe zur\u00fcck, die alle Informationen \u00fcber das Netzwerk \"my_network\" enth\u00e4lt.\n\nBeispiel 2: Inspektion mehrerer Netzwerke\n\nWir k\u00f6nnen auch mehrere Netzwerke gleichzeitig untersuchen, indem wir ihre Namen oder IDs durch Leerzeichen trennen. Zum Beispiel:\n\n```\ndocker network inspect my_network1 my_network2\n```\n\nDieser Befehl gibt Informationen \u00fcber beide Netzwerke \"my_network1\" und \"my_network2\" zur\u00fcck.\n\nOptionen des Befehls \"docker network inspect\"\n\nDer Befehl \"docker network inspect\" bietet einige Optionen, die wir verwenden k\u00f6nnen, um das Verhalten des Befehls anzupassen. Hier sind einige der wichtigsten Optionen:\n\n- `--format, -f`: Erm\u00f6glicht es uns, die Ausgabe des Befehls mithilfe eines Go-Vorlagenformats anzupassen.\n- `--verbose, -v`: Zeigt zus\u00e4tzliche Informationen \u00fcber das Netzwerk an.\n\nBeispiel 3: Anpassen der Ausgabe mit der Option \"--format\"\n\nAngenommen, wir m\u00f6chten nur den Namen und die ID des Netzwerks \"my_network\" anzeigen. Wir k\u00f6nnen den folgenden Befehl verwenden:\n\n```\ndocker network inspect --format \"{{.Name}}: {{.Id}}\" my_network\n```\n\nDieser Befehl gibt eine angepasste Ausgabe zur\u00fcck, die nur den Namen und die ID des Netzwerks enth\u00e4lt.\n\nZusammenfassung\n\nIn diesem Artikel haben wir uns mit dem Befehl \"docker network inspect\" befasst. Wir haben die Syntax des Befehls, seine Verwendung und einige praktische Beispiele untersucht. Mit diesem Befehl k\u00f6nnen wir detaillierte Informationen \u00fcber Docker-Netzwerke erhalten, was bei der Fehlerbehebung und Verwaltung von Docker-Netzwerken sehr n\u00fctzlich ist.","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\/de\/wiki\/docker-netzwerk-untersuchen\/","og_locale":"de_DE","og_type":"article","og_title":"Docker Network Inspect - Dockerpros","og_description":"Docker Network Inspect provides detailed insights into a Docker network's configuration and connected containers. This command is essential for troubleshooting network issues and optimizing container communication.","og_url":"https:\/\/dockerpros.com\/de\/wiki\/docker-netzwerk-untersuchen\/","og_site_name":"Dockerpros","article_modified_time":"2024-07-22T20:50:54+00:00","og_image":[{"width":800,"height":600,"url":"https:\/\/dockerpros.com\/wp-content\/uploads\/2024\/07\/docker-network-inspect_1164.jpg","type":"image\/jpeg"}],"twitter_card":"summary_large_image","twitter_misc":{"Gesch\u00e4tzte Lesezeit":"6\u00a0Minuten"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/dockerpros.com\/wiki\/docker-network-inspect\/","url":"https:\/\/dockerpros.com\/wiki\/docker-network-inspect\/","name":"Docker Network Inspect - Dockerpros\n\nIn diesem Artikel werden wir uns mit dem Befehl \"docker network inspect\" befassen. Dieser Befehl erm\u00f6glicht es uns, detaillierte Informationen \u00fcber ein bestimmtes Docker-Netzwerk zu erhalten. Wir werden die Syntax des Befehls, seine Verwendung und einige praktische Beispiele untersuchen.\n\nSyntax des Befehls \"docker network inspect\"\n\nDie grundlegende Syntax des Befehls lautet wie folgt:\n\n```\ndocker network inspect [OPTIONS] NETWORK [NETWORK...]\n```\n\nHierbei ist NETWORK der Name oder die ID des Netzwerks, das wir untersuchen m\u00f6chten. Wir k\u00f6nnen auch mehrere Netzwerke angeben, indem wir sie durch Leerzeichen trennen.\n\nVerwendung des Befehls \"docker network inspect\"\n\nDer Befehl \"docker network inspect\" wird verwendet, um detaillierte Informationen \u00fcber ein Docker-Netzwerk zu erhalten. Dies umfasst Informationen wie den Namen des Netzwerks, die ID, den Treiber, den Subnetzbereich, die Gateway-IP-Adresse und vieles mehr.\n\nBeispiel 1: Inspektion eines einzelnen Netzwerks\n\nAngenommen, wir haben ein Netzwerk mit dem Namen \"my_network\" erstellt. Um detaillierte Informationen \u00fcber dieses Netzwerk zu erhalten, k\u00f6nnen wir den folgenden Befehl verwenden:\n\n```\ndocker network inspect my_network\n```\n\nDieser Befehl gibt eine JSON-Ausgabe zur\u00fcck, die alle Informationen \u00fcber das Netzwerk \"my_network\" enth\u00e4lt.\n\nBeispiel 2: Inspektion mehrerer Netzwerke\n\nWir k\u00f6nnen auch mehrere Netzwerke gleichzeitig untersuchen, indem wir ihre Namen oder IDs durch Leerzeichen trennen. Zum Beispiel:\n\n```\ndocker network inspect my_network1 my_network2\n```\n\nDieser Befehl gibt Informationen \u00fcber beide Netzwerke \"my_network1\" und \"my_network2\" zur\u00fcck.\n\nOptionen des Befehls \"docker network inspect\"\n\nDer Befehl \"docker network inspect\" bietet einige Optionen, die wir verwenden k\u00f6nnen, um das Verhalten des Befehls anzupassen. Hier sind einige der wichtigsten Optionen:\n\n- `--format, -f`: Erm\u00f6glicht es uns, die Ausgabe des Befehls mithilfe eines Go-Vorlagenformats anzupassen.\n- `--verbose, -v`: Zeigt zus\u00e4tzliche Informationen \u00fcber das Netzwerk an.\n\nBeispiel 3: Anpassen der Ausgabe mit der Option \"--format\"\n\nAngenommen, wir m\u00f6chten nur den Namen und die ID des Netzwerks \"my_network\" anzeigen. Wir k\u00f6nnen den folgenden Befehl verwenden:\n\n```\ndocker network inspect --format \"{{.Name}}: {{.Id}}\" my_network\n```\n\nDieser Befehl gibt eine angepasste Ausgabe zur\u00fcck, die nur den Namen und die ID des Netzwerks enth\u00e4lt.\n\nZusammenfassung\n\nIn diesem Artikel haben wir uns mit dem Befehl \"docker network inspect\" befasst. Wir haben die Syntax des Befehls, seine Verwendung und einige praktische Beispiele untersucht. Mit diesem Befehl k\u00f6nnen wir detaillierte Informationen \u00fcber Docker-Netzwerke erhalten, was bei der Fehlerbehebung und Verwaltung von Docker-Netzwerken sehr n\u00fctzlich ist.","isPartOf":{"@id":"https:\/\/dockerpros.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/dockerpros.com\/wiki\/docker-network-inspect\/#primaryimage"},"image":{"@id":"https:\/\/dockerpros.com\/wiki\/docker-network-inspect\/#primaryimage"},"thumbnailUrl":"https:\/\/dockerpros.com\/wp-content\/uploads\/2024\/07\/docker-network-inspect_1164.jpg","datePublished":"2024-07-22T20:44:28+00:00","dateModified":"2024-07-22T20:50:54+00:00","breadcrumb":{"@id":"https:\/\/dockerpros.com\/wiki\/docker-network-inspect\/#breadcrumb"},"inLanguage":"de","potentialAction":[{"@type":"ReadAction","target":["https:\/\/dockerpros.com\/wiki\/docker-network-inspect\/"]}]},{"@type":"ImageObject","inLanguage":"de","@id":"https:\/\/dockerpros.com\/wiki\/docker-network-inspect\/#primaryimage","url":"https:\/\/dockerpros.com\/wp-content\/uploads\/2024\/07\/docker-network-inspect_1164.jpg","contentUrl":"https:\/\/dockerpros.com\/wp-content\/uploads\/2024\/07\/docker-network-inspect_1164.jpg","width":800,"height":600,"caption":"docker-network-inspect-2"},{"@type":"BreadcrumbList","@id":"https:\/\/dockerpros.com\/wiki\/docker-network-inspect\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/dockerpros.com\/"},{"@type":"ListItem","position":2,"name":"Glossary","item":"https:\/\/dockerpros.com\/fr\/wiki\/"},{"@type":"ListItem","position":3,"name":"Docker Network Inspect"}]},{"@type":"WebSite","@id":"https:\/\/dockerpros.com\/#website","url":"https:\/\/dockerpros.com\/","name":"Docker-Profis","description":"DockerPros \u2013 Ihr umfassender Docker-Ressourcen-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":"de"},{"@type":"Organization","@id":"https:\/\/dockerpros.com\/#organization","name":"Docker-Profis","url":"https:\/\/dockerpros.com\/","logo":{"@type":"ImageObject","inLanguage":"de","@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\/de\/wp-json\/wp\/v2\/glossary\/1164","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dockerpros.com\/de\/wp-json\/wp\/v2\/glossary"}],"about":[{"href":"https:\/\/dockerpros.com\/de\/wp-json\/wp\/v2\/types\/glossary"}],"author":[{"embeddable":true,"href":"https:\/\/dockerpros.com\/de\/wp-json\/wp\/v2\/users\/1"}],"version-history":[{"count":0,"href":"https:\/\/dockerpros.com\/de\/wp-json\/wp\/v2\/glossary\/1164\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dockerpros.com\/de\/wp-json\/wp\/v2\/media\/1645"}],"wp:attachment":[{"href":"https:\/\/dockerpros.com\/de\/wp-json\/wp\/v2\/media?parent=1164"}],"wp:term":[{"taxonomy":"glossary-cat","embeddable":true,"href":"https:\/\/dockerpros.com\/de\/wp-json\/wp\/v2\/glossary-cat?post=1164"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}