What is the difference between network_mode and networks using Docker - Stack Overflow (https://cdn.sstatic.net/Sites/stackoverflow/Img/favicon.ico?v=ec617d715196) (https://cdn.sstatic.net/Sites/stackoverflow/Img/apple-touch-icon.png?v=c78bd457575a) (https://cdn.sstatic.net/Sites/stackoverflow/Img/apple-touch-icon.png?v=c78bd457575a) (Stack Overflow) (/opensearch.xml) (https://stackoverflow.com/questions/74903232/what-is-the-difference-between-network-mode-and-networks-using-docker) (https://cdn.sstatic.net/Shared/stacks.css?v=bd2aba62c5a4) (https://cdn.sstatic.net/Sites/stackoverflow/primary.css?v=7d8876444382) (Feed for question 'What is the difference between network_mode and networks using Docker') (/feeds/question/74903232) (https://cdn.sstatic.net/Shared/Channels/channels.css?v=5981bb1a5bd7) (https://accounts.google.com/gsi/style) (site logo) Join Stack Overflow By clicking “Sign up”, you agree to our (/legal/terms-of-service/public) terms of service and acknowledge you have read our (/legal/privacy-policy) privacy policy . (9b9d1ff1208457cf29de4d03e17fc06b55f301e0c5c48e7398c73e63b318268a) (1) (2.0) Sign up with Google Sign up with GitHub OR (9b9d1ff1208457cf29de4d03e17fc06b55f301e0c5c48e7398c73e63b318268a) (1) () () () () () () Email Password (8+ characters (at least 1 letter & 1 number)) Sign up Already have an account? (/users/login) Log in (9b9d1ff1208457cf29de4d03e17fc06b55f301e0c5c48e7398c73e63b318268a) () Skip to main content (https://stackoverflow.com) Stack Overflow (https://stackoverflow.co/) About Products (https://stackoverflow.co/teams/ai/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav-bar&utm_content=overflowai) OverflowAI (https://stackoverflow.co/teams/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=stack-overflow-for-teams) Stack Overflow for Teams Where developers & technologists share private knowledge with coworkers (https://stackoverflow.co/advertising/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=stack-overflow-advertising) Advertising & Talent Reach devs & technologists worldwide about your product, service or employer brand (https://stackoverflow.co/teams/ai/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=overflow-ai) OverflowAI GenAI features for Teams (https://stackoverflow.co/api-solutions/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=overflow-api) OverflowAPI Train & fine-tune LLMs (https://stackoverflow.co/labs/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=labs) Labs The future of collective knowledge sharing (https://stackoverflow.co/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=about-the-company) About the company (https://stackoverflow.blog/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=blog) Visit the blog (Search…) () Loading… (https://stackoverflow.com) current community (https://stackoverflow.com) (Stack Overflow) Stack Overflow (https://stackoverflow.com/help) help (https://chat.stackoverflow.com/?tab=site&host=stackoverflow.com) chat (https://meta.stackoverflow.com) (Meta Stack Overflow) Meta Stack Overflow your communities (https://stackoverflow.com/users/signup?ssrc=site_switcher&returnurl=https%3a%2f%2fstackoverflow.com%2fquestions%2f74903232%2fwhat-is-the-difference-between-network-mode-and-networks-using-docker) Sign up or (https://stackoverflow.com/users/login?ssrc=site_switcher&returnurl=https%3a%2f%2fstackoverflow.com%2fquestions%2f74903232%2fwhat-is-the-difference-between-network-mode-and-networks-using-docker) log in to customize your list. (https://stackexchange.com/sites) more stack exchange communities (https://stackoverflow.blog) company blog (Click to show search) (https://stackoverflow.com/users/login?ssrc=head&returnurl=https%3a%2f%2fstackoverflow.com%2fquestions%2f74903232%2fwhat-is-the-difference-between-network-mode-and-networks-using-docker) Log in (https://stackoverflow.com/users/signup?ssrc=head&returnurl=https%3a%2f%2fstackoverflow.com%2fquestions%2f74903232%2fwhat-is-the-difference-between-network-mode-and-networks-using-docker) Sign up Let's set up your homepage Select a few topics you're interested in: python javascript c# reactjs java android html flutter c++ node.js typescript css r php angular next.js spring-boot machine-learning sql excel ios azure docker Or search from our full list: (Search) javascript python java c# php android html jquery c++ css ios sql mysql r reactjs node.js arrays c asp.net json python-3.x .net ruby-on-rails sql-server swift django angular objective-c excel pandas angularjs regex typescript ruby linux ajax iphone vba xml laravel spring asp.net-mvc database wordpress string flutter postgresql mongodb wpf windows amazon-web-services xcode bash git oracle-database spring-boot dataframe azure firebase list multithreading docker vb.net react-native eclipse algorithm powershell macos visual-studio numpy image forms scala function vue.js performance twitter-bootstrap selenium winforms kotlin loops express dart hibernate sqlite matlab python-2.7 shell rest apache entity-framework android-studio csv maven api linq qt dictionary unit-testing facebook asp.net-core tensorflow apache-spark file swing class unity-game-engine sorting date authentication go symfony t-sql opencv matplotlib .htaccess google-chrome for-loop datetime codeigniter http perl validation sockets google-maps object uitableview xaml oop if-statement visual-studio-code cordova ubuntu web-services email android-layout github elasticsearch spring-mvc kubernetes selenium-webdriver ms-access user-interface parsing ggplot2 pointers machine-learning google-sheets c++11 security flask google-apps-script ruby-on-rails-3 templates nginx variables exception sql-server-2008 gradle debugging tkinter listview delphi jpa asynchronous pdf web-scraping haskell jsp ssl amazon-s3 google-cloud-platform jenkins testing xamarin wcf npm batch-file generics ionic-framework network-programming unix recursion google-app-engine mongoose visual-studio-2010 .net-core android-fragments assembly animation math next.js session svg hadoop intellij-idea curl django-models join laravel-5 rust winapi url heroku http-redirect tomcat google-cloud-firestore inheritance webpack keras image-processing gcc asp.net-mvc-4 web logging dom swiftui matrix pyspark actionscript-3 button post optimization firebase-realtime-database jquery-ui iis cocoa xpath d3.js javafx firefox internet-explorer xslt caching select asp.net-mvc-3 opengl events asp.net-web-api plot dplyr magento encryption search stored-procedures amazon-ec2 ruby-on-rails-4 memory canvas audio multidimensional-array jsf random vector cookies redux facebook-graph-api input flash xamarin.forms indexing arraylist ipad cocoa-touch data-structures video apache-kafka model-view-controller serialization jdbc woocommerce routes razor azure-devops awk servlets mod-rewrite beautifulsoup docker-compose excel-formula iframe filter aws-lambda design-patterns text django-rest-framework visual-c++ cakephp mobile android-intent react-hooks struct methods groovy mvvm ssh lambda checkbox ecmascript-6 google-chrome-extension time grails installation sharepoint cmake shiny spring-security jakarta-ee android-recyclerview plsql core-data types meteor android-activity sed bootstrap-4 websocket activerecord graph replace scikit-learn file-upload group-by vim junit boost deep-learning import sass memory-management error-handling async-await dynamic eloquent soap silverlight dependency-injection charts layout apache-spark-sql deployment browser gridview svn while-loop google-bigquery vuejs2 ffmpeg dll highcharts view foreach plugins makefile c#-4.0 redis reporting-services jupyter-notebook merge server unicode https reflection google-maps-api-3 twitter oauth-2.0 extjs pytorch axios terminal pip split mysqli cmd django-views encoding database-design automation collections netbeans hash build data-binding ember.js tcp sqlalchemy pdo apache-flex concurrency entity-framework-core command-line spring-data-jpa printing java-8 react-redux jestjs service html-table neo4j lua ansible parameters module material-ui enums visual-studio-2012 promise flexbox outlook webview firebase-authentication web-applications uwp jquery-mobile utf-8 datatable python-requests parallel-processing drop-down-menu colors scroll hive tfs scipy count syntax ms-word twitter-bootstrap-3 ssis google-analytics fonts three.js constructor powerbi rxjs graphql file-io paypal discord cassandra socket.io graphics compiler-errors gwt react-router nlp solr url-rewriting backbone.js memory-leaks datatables oauth datagridview terraform drupal oracle11g zend-framework neural-network knockout.js triggers django-forms interface google-api angular-material casting jmeter linked-list path proxy timer django-templates arduino orm directory visual-studio-2015 parse-platform windows-phone-7 cron push-notification conditional-statements primefaces functional-programming pagination model jar xamarin.android hyperlink uiview visual-studio-2013 gitlab vbscript google-cloud-functions azure-active-directory jwt download swift3 sql-server-2005 configuration process rspec pygame properties combobox callback windows-phone-8 linux-kernel safari permissions scrapy raspberry-pi scripting emacs clojure x86 scope io compilation mongodb-query nhibernate responsive-design angularjs-directive expo request azure-functions bluetooth 3d dns binding reference discord.js architecture playframework version-control pyqt doctrine-orm package pycharm get sql-server-2012 rubygems f# autocomplete datepicker openssl kendo-ui tree jackson controller yii grep nested xamarin.ios static dockerfile statistics transactions datagrid null active-directory uiviewcontroller phpmyadmin webforms discord.py notifications sas computer-vision duplicates mocking youtube nullpointerexception yaml menu sum bitmap electron asp.net-mvc-5 visual-studio-2008 time-series blazor yii2 jsf-2 css-selectors stl android-listview floating-point cryptography ant stream hashmap character-encoding msbuild sdk asp.net-core-mvc google-drive-api selenium-chromedriver jboss joomla navigation cors devise anaconda background camera multiprocessing pyqt5 binary frontend cuda linq-to-sql iterator mariadb onclick plotly ios7 rabbitmq android-jetpack-compose android-asynctask microsoft-graph-api tabs laravel-4 insert uicollectionview environment-variables amazon-dynamodb linker console xsd coldfusion upload continuous-integration ftp textview opengl-es operating-system vuejs3 mockito localization xml-parsing macros formatting json.net kivy type-conversion data.table timestamp calendar integer segmentation-fault android-ndk drag-and-drop prolog char crash jasmine automated-tests dependencies geometry android-gradle-plugin itext firebase-cloud-messaging header fortran sprite-kit mfc attributes nuxt.js nosql format azure-pipelines nestjs odoo jquery-plugins db2 jenkins-pipeline leaflet event-handling postman flutter-layout julia annotations keyboard textbox arm visual-studio-2017 gulp libgdx stripe-payments xampp synchronization crystal-reports timezone dom-events azure-web-app-service android-emulator uikit swagger wso2 sequelize.js namespaces aggregation-framework uiscrollview jvm google-sheets-formula chart.js com subprocess geolocation webdriver centos html5-canvas widget dialog garbage-collection snowflake-cloud-data-platform numbers concatenation sql-update qml set windows-10 mapreduce tuples smtp ionic2 java-stream rotation modal-dialog spring-data android-edittext http-headers doctrine radio-button nuget grid sonarqube lucene xmlhttprequest internationalization listbox components initialization switch-statement google-play apache-camel boolean serial-port ldap ios5 youtube-api return gdb pivot eclipse-plugin latex frameworks tags containers github-actions dataset asp-classic subquery foreign-keys label copy uinavigationcontroller c++17 delegates google-cloud-storage struts2 migration base64 protractor find sql-server-2008-r2 queue uibutton embedded arguments composer-php append jaxb zip stack cucumber autolayout ide entity-framework-6 popup iteration airflow windows-7 r-markdown ssl-certificate vb6 tailwind-css gmail hover jqgrid g++ udp Next You’ll be prompted to create an account to view your personalized homepage. (/) Home (/questions) Questions (/tags) Tags (/users) Users (https://stackoverflow.com/jobs/companies?so_medium=stackoverflow&so_source=SiteNav) Companies Labs (/jobs?source=so-left-nav) Jobs (/beta/discussions) Discussions Collectives Communities for your favorite technologies. (/collectives-all) Explore all Collectives Teams () Ask questions, find answers and collaborate at work with Stack Overflow for Teams. (https://stackoverflowteams.com/teams/create/free/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=side-bar&utm_content=explore-teams) Try Teams for free (https://stackoverflow.co/teams/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=side-bar&utm_content=explore-teams) Explore Teams Teams Ask questions, find answers and collaborate at work with Stack Overflow for Teams. (https://stackoverflow.co/teams/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=side-bar&utm_content=explore-teams-compact) Explore Teams Collectives™ on Stack Overflow Find centralized, trusted content and collaborate around the technologies you use most. (/collectives) Learn more about Collectives Teams Q&A for work Connect and share knowledge within a single location that is structured and easy to search. (https://stackoverflow.co/teams/) Learn more about Teams Get early access and see previews of new features. (https://stackoverflow.co/labs/) Learn more about Labs (Illustration of upvote icon after it is clicked) Hang on, you can't upvote just yet. You'll need to complete a few actions and gain 15 reputation points before being able to upvote. Upvoting indicates when questions and answers are useful. (https://stackoverflow.com/help/whats-reputation) What's reputation and how do I get it? Instead, you can save this post to reference later. Save this post for later Not now (https://cdn.sstatic.net/Sites/stackoverflow/Img/apple-touch-icon.png?v=c78bd457575a) (/questions/74903232/what-is-the-difference-between-network-mode-and-networks-using-docker) What is the difference between network_mode and networks using Docker (/questions/ask) Ask Question (2022-12-23 19:10:45Z) Asked 2 years, 2 months ago Modified (?lastactivity) (2022-12-23 19:37:15Z) 2 years, 2 months ago (Viewed 12,196 times) Viewed 12k times This question shows research effort; it is useful and clear (70:3:31e,16:755cc2ea967786eb,10:1742103442,16:dfb87c861602b479,8:74903232,374761bd2e9dd963dc6e06355b12f20fb782440311dd2c52fdb24b49cd82253a) 8 (This question does not show any research effort; it is unclear or not useful) (70:3:31e,16:7abe5c3d76c495cc,10:1742103442,16:6d835a9b499a16c2,8:74903232,ed4ba4c776758529eac9cdadbc968d8c8e6a4d8836c692012da560e8f77a0b61) Save this question. (/posts/74903232/timeline) Show activity on this post. I was trying to use the network "bridge" to join services from different "docker-compose.yml" and I was getting the following error: Network-scoped alias is supported only for containers in user defined networks Searching a bit, I came to this reference link:: (https://github.com/docker/compose/issues/3012) https://github.com/docker/compose/issues/3012 I read and re-read everything several times, but I couldn't understand the real reason for using one or the other. Can someone explain to me what the difference is in practice? Why when you use network_mode and run docker network inspect bridge all containers correctly linked appear? Before: services: local-db: image: mysql networks: default: external: name: bridge After: local-db: image: mysql network_mode: bridge (/questions/tagged/docker) (show questions tagged 'docker') docker (/questions/tagged/docker-compose) (show questions tagged 'docker-compose') docker-compose (/questions/tagged/containers) (show questions tagged 'containers') containers (/q/74903232) (Short permalink to this question) Share Share a link to this question Copy link (https://creativecommons.org/licenses/by-sa/4.0/) (The current license for this post: CC BY-SA 4.0) CC BY-SA 4.0 (/posts/74903232/edit) () Improve this question Follow (70:3:31e,16:ca6c1ac28622904f,10:1742103442,16:7d36a043649f00c6,8:74903232,528b960789f4f5461b53cc4ac73d62a78cadfc63bfc49cd08c1993cf90cf0700) Follow this question to receive notifications asked (2022-12-23 19:10:45Z) Dec 23, 2022 at 19:10 (/users/8401294/jos%c3%a9-victor) (José Victor's user avatar) (/users/8401294/jos%c3%a9-victor) José Victor José Victor (reputation score) 345 (1 gold badge) 1 1 gold badge (2 silver badges) 2 2 silver badges (14 bronze badges) 14 14 bronze badges (Use comments to ask for more information or suggest improvements. Avoid answering questions in comments.) Add a comment | (Expand to show all comments on this post) 1 Answer 1 Sorted by: (/questions/74903232/what-is-the-difference-between-network-mode-and-networks-using-docker?answertab=scoredesc#tab-top) Reset to default (scoredesc) Highest score (default) (trending) Trending (recent votes count more) (modifieddesc) Date modified (newest first) (createdasc) Date created (oldest first) This answer is useful (70:3:31e,16:a3522a9ed7e993bc,10:1742103442,16:af4ee9d39f4111ff,8:74903410,6eee66500b06b335cbf6823e7b276d9b43f13ae5dbf0f0741ce4943162691f82) 6 (This answer is not useful) (70:3:31e,16:f9a0bf69e1a8b03a,10:1742103442,16:6165cee8b30cc480,8:74903410,aed82f076ce50a597b17bb5bebd8dc2891229240590ecc7ae6ab3adbdb590e6f) Save this answer. (Loading when this answer was accepted…) (/posts/74903410/timeline) Show activity on this post. The top level networks section creates networks in compose (or specifies external user created networks) that can be used by various services. Each service then defines a networks section to identify one or more user created networks to join. That service gets automatically configured with a network alias for DNS based service discovery. This is the preferred method to setup networking with services, and by default each of these networks is a bridge network. To skip that entire process, you can use a network_mode that changes from the compose managed networking to switch to host , bridge , none , service:$name , or container:$name . Each of these has unique properties. host has no network namespacing at all, similar to starting a process outside of a container. bridge is the legacy bridge network docker always creates, but disables some features like DNS based service discovery. none is no networking at all, only the loopback interface is defined. service:$name and container:$name are special ways of connecting multiple containers into the same network namespace. The same thing is done by pods in kubernetes, and it can be useful for network troubleshooting or when creating sidecars that require access to localhost. This should only be used as a last resort when building microservices since it breaks the ability to independently scale and deploy the containers. (/a/74903410) (Short permalink to this answer) Share Share a link to this answer Copy link (https://creativecommons.org/licenses/by-sa/4.0/) (The current license for this post: CC BY-SA 4.0) CC BY-SA 4.0 (/posts/74903410/edit) () Improve this answer Follow (70:3:31e,16:651e9b4b2fc6a5b0,10:1742103442,16:61eb2b60adf07ecb,8:74903410,99fae59bf17d9971a79b0dd6faed1b8528ba65602a4797f0dd7737e2bdbfdb86) Follow this answer to receive notifications answered (2022-12-23 19:37:15Z) Dec 23, 2022 at 19:37 (/users/596285/bmitch) (BMitch's user avatar) (/users/596285/bmitch) BMitch BMitch (reputation score 265,278) 265k (50 gold badges) 50 50 gold badges (542 silver badges) 542 542 silver badges (499 bronze badges) 499 499 bronze badges 3 And why can't I use "networks" to add the "bridge"? Just because "bridge" is a Docker standard? – (/users/8401294/jos%c3%a9-victor) (345 reputation) José Victor Commented (2022-12-23 19:46:00Z, License: CC BY-SA 4.0) Dec 23, 2022 at 19:46 @JoséVictor the default networks from docker have different properties from user created networks. Compose can't apply its normal settings to containers on those networks. – (/users/596285/bmitch) (265,278 reputation) BMitch Commented (2022-12-23 19:57:39Z, License: CC BY-SA 4.0) Dec 23, 2022 at 19:57 Now I understand, it is a particularity due to the fact that it is standard docker networks. Thanks a lot for your patience and explanation. @BMitch – (/users/8401294/jos%c3%a9-victor) (345 reputation) José Victor Commented (2022-12-23 20:23:39Z, License: CC BY-SA 4.0) Dec 23, 2022 at 20:23 (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) (74903232) (false) () Your Answer (True) Thanks for contributing an answer to Stack Overflow! Please be sure to answer the question . Provide details and share your research! But avoid … Asking for help, clarification, or responding to other answers. Making statements based on opinion; back them up with references or personal experience. To learn more, see our (/help/how-to-answer) tips on writing great answers . Draft saved Draft discarded (9b9d1ff1208457cf29de4d03e17fc06b55f301e0c5c48e7398c73e63b318268a) Sign up or (/users/login?ssrc=question_page&returnurl=https%3a%2f%2fstackoverflow.com%2fquestions%2f74903232%2fwhat-is-the-difference-between-network-mode-and-networks-using-docker%23new-answer) log in Sign up using Google Sign up using Email and Password (false) (false) Submit Post as a guest Name () () Email Required, but never shown () () Post as a guest Name () () Email Required, but never shown () () Post Your Answer Discard By clicking “Post Your Answer”, you agree to our (https://stackoverflow.com/legal/terms-of-service/public) terms of service and acknowledge you have read our (https://stackoverflow.com/legal/privacy-policy) privacy policy .(1) Start asking to get answers Find the answer to your question by asking. (/questions/ask) Ask question Explore related questions (/questions/tagged/docker) (show questions tagged 'docker') docker (/questions/tagged/docker-compose) (show questions tagged 'docker-compose') docker-compose (/questions/tagged/containers) (show questions tagged 'containers') containers See similar questions with these tags. The Overflow Blog (https://stackoverflow.blog/2025/03/14/can-climate-tech-startups-address-the-current-crisis/?cb=1) Can climate tech startups address the current crisis? (https://stackoverflow.blog/2025/03/14/what-we-learned-at-tdx-2025/?cb=1) What we learned at TDX 2025 Featured on Meta (Meta Stack Exchange) (https://meta.stackexchange.com/questions/407321/community-asks-sprint-announcement-march-2025?cb=1) Community Asks Sprint Announcement - March 2025 (Meta Stack Exchange) (https://meta.stackexchange.com/questions/407425/meta-stack-exchange-site-maintenance-scheduled-starting-monday-march-17-2025-f?cb=1) (Meta Stack Exchange site maintenance scheduled starting Monday, March 17, 2025 from 13:30 UTC to 14:30 UTC (9:30am to 10:30am ET)) Meta Stack Exchange site maintenance scheduled starting Monday, March 17,... (Meta Stack Overflow) (https://meta.stackoverflow.com/questions/432989/is-it-better-to-redirect-users-who-attempt-to-perform-actions-they-cant-yet-tak?cb=1) (Is it better to redirect users who attempt to perform actions they can't yet take?) Is it better to redirect users who attempt to perform actions they can't yet... (Meta Stack Overflow) (https://meta.stackoverflow.com/questions/433034/stacks-editor-development-and-testing?cb=1) Stacks Editor development and testing Linked (https://stackoverflow.com/q/74904086?lq=1) (Question score (upvotes - downvotes)) 0 (https://stackoverflow.com/questions/74904086/services-on-the-same-network-cannot-be-seen-by-alias-only-by-ip?noredirect=1&lq=1) Services on the same network cannot be seen by alias, only by ip Related (https://stackoverflow.com/q/38663834?rq=3) (Question score (upvotes - downvotes)) 9 (https://stackoverflow.com/questions/38663834/docker-compose-network-mode-host-doesnt-seem-to-work?rq=3) docker-compose network_mode: "host" doesn't seem to work (https://stackoverflow.com/q/41294305?rq=3) (Question score (upvotes - downvotes)) 59 (https://stackoverflow.com/questions/41294305/docker-compose-difference-between-networks-and-links?rq=3) docker-compose: difference between networks and links (https://stackoverflow.com/q/51174779?rq=3) (Question score (upvotes - downvotes)) 8 (https://stackoverflow.com/questions/51174779/ansible-docker-container-options-network-mode-and-networks-are-they-inte?rq=3) Ansible `docker_container` options `network_mode` and `networks` - are they intersecting? (https://stackoverflow.com/q/56721614?rq=3) (Question score (upvotes - downvotes)) 1 (https://stackoverflow.com/questions/56721614/docker-custom-networks-or-network-mode-host-which-one-should-i-select?rq=3) Docker custom networks or network_mode = host which one should I select? (https://stackoverflow.com/q/58102461?rq=3) (Question score (upvotes - downvotes)) 3 (https://stackoverflow.com/questions/58102461/network-mode-container-in-docker-compose?rq=3) Network mode container in docker-compose (https://stackoverflow.com/q/60245545?rq=3) (Question score (upvotes - downvotes)) 5 (https://stackoverflow.com/questions/60245545/how-to-config-networks-in-docker-compose?rq=3) How to config networks in docker-compose? (https://stackoverflow.com/q/61853495?rq=3) (Question score (upvotes - downvotes)) 0 (https://stackoverflow.com/questions/61853495/cant-use-network-mode-in-docker-compose-yml-file-version-3-with-docker-compos?rq=3) Can't use "network_mode" in docker-compose.yml file version 3 with docker-compose v1.24.1 (https://stackoverflow.com/q/63061552?rq=3) (Question score (upvotes - downvotes)) 4 (https://stackoverflow.com/questions/63061552/docker-compose-how-to-define-container-scoped-network-like-in-docker-run?rq=3) docker-compose how to define container scoped network like in docker run? (https://stackoverflow.com/q/71147157?rq=3) (Question score (upvotes - downvotes)) 1 (https://stackoverflow.com/questions/71147157/network-mode-serviceservicename-not-working-correctly?rq=3) network_mode: service: not working correctly (https://stackoverflow.com/q/71637192?rq=3) (Question score (upvotes - downvotes)) 1 (https://stackoverflow.com/questions/71637192/docker-compose-up-error-network-mode-and-networks-cannot-be-combined?rq=3) docker-compose up; ERROR: 'network_mode' and 'networks' cannot be combined (https://stackexchange.com/questions?tab=hot) Hot Network Questions (Politics Stack Exchange) (https://politics.stackexchange.com/questions/91024/has-russia-ever-explained-its-u-turn-on-going-to-war-with-ukraine) Has Russia ever explained its U-turn on going to war with Ukraine? (Electrical Engineering Stack Exchange) (https://electronics.stackexchange.com/questions/741495/a-problem-with-the-basics-of-opamps) A Problem with the Basics of OpAmps (Electrical Engineering Stack Exchange) (https://electronics.stackexchange.com/questions/741499/can-i-change-a-ferrite-core-to-a-slightly-larger-one-without-problems) Can I change a ferrite core to a slightly larger one without problems? (MathOverflow) (https://mathoverflow.net/questions/489355/na%c3%afve-category-theory-or-pedagogy-and-how-to-introduce-natural-transformatio) "Naïve category theory", or, pedagogy and how to Introduce natural transformations? (French Language Stack Exchange) (https://french.stackexchange.com/questions/55656/the-dos-and-donts-of-do-in-french) The do's and don'ts of do in French (Law Stack Exchange) (https://law.stackexchange.com/questions/107793/can-an-insurance-company-legally-sell-an-unclaimable-policy) Can an insurance company legally sell an unclaimable policy? (German Language Stack Exchange) (https://german.stackexchange.com/questions/78914/grammatically-speaking-what-is-kann-ermittelt-werden) Grammatically speaking, what is "Kann ... ermittelt werden"? (Christianity Stack Exchange) (https://christianity.stackexchange.com/questions/105494/what-is-the-reasoning-that-leads-evangelicals-or-others-to-believe-attempting) What is the reasoning that leads Evangelicals (or others) to believe attempting to determine if a prominent figure is the Antichrist is acceptable? (MathOverflow) (https://mathoverflow.net/questions/489489/does-every-non-zero-finitely-generated-ring-have-a-proper-left-ideal-of-finite-i) Does every non-zero finitely generated ring have a proper left ideal of finite index? (Law Stack Exchange) (https://law.stackexchange.com/questions/107776/may-the-federal-government-deny-services-opportunities-or-equal-treatment-to-c) May the federal government deny services, opportunities, or equal treatment to customers of businesses they do not like? (Physics Stack Exchange) (https://physics.stackexchange.com/questions/845320/references-for-numerical-solutions-of-the-feynman-path-integral) References for Numerical Solutions of the Feynman Path Integral (Mathematica Stack Exchange) (https://mathematica.stackexchange.com/questions/311562/how-to-return-data-only-from-a-memoized-cached-variable) How to return data only from a memoized, cached variable (Literature Stack Exchange) (https://literature.stackexchange.com/questions/28952/how-widely-known-was-it-that-elia-was-charles-lamb) How widely known was it that Elia was Charles Lamb? (Physics Stack Exchange) (https://physics.stackexchange.com/questions/845337/schrodinger-equation-with-constant-potential) Schrodinger equation with constant potential (Worldbuilding Stack Exchange) (https://worldbuilding.stackexchange.com/questions/265297/can-a-single-country-simultaneously-suffer-from-overpopulation-and-underpopulati) Can a single country simultaneously suffer from overpopulation and underpopulation? (Super User) (https://superuser.com/questions/1886119/hide-value-in-column-when-it-is-0) Hide value in column when it is 0 (Electrical Engineering Stack Exchange) (https://electronics.stackexchange.com/questions/741550/why-always-one-diode-takes-up-all-the-voltage-drop-in-a-series-of-diodes) Why always one diode takes up all the voltage drop in a series of diodes? (Role-playing Games Stack Exchange) (https://rpg.stackexchange.com/questions/214990/does-the-thaumaturges-lantern-implement-provide-a-bonus-to-initiative) Does the Thaumaturge's Lantern Implement provide a bonus to Initiative? (TeX - LaTeX Stack Exchange) (https://tex.stackexchange.com/questions/739023/expansion-of-pgfplotsretval-in-node-contents-inside-foreach-loop) Expansion of \pgfplotsretval in node contents inside foreach loop (Physics Stack Exchange) (https://physics.stackexchange.com/questions/845192/classically-radiating-black-holes-vs-quantum-mechanically-radiating-black-holes) Classically radiating black holes vs Quantum mechanically radiating black holes (Blender Stack Exchange) (https://blender.stackexchange.com/questions/332355/consistent-highlight-on-a-cylinder-regardless-of-camera-angle) Consistent Highlight on a Cylinder Regardless of Camera Angle? (MathOverflow) (https://mathoverflow.net/questions/489416/do-two-polynomials-whose-coefficients-are-the-same-up-to-permutation-satisfy-thi) Do two polynomials whose coefficients are the same up to permutation satisfy this relation? (Worldbuilding Stack Exchange) (https://worldbuilding.stackexchange.com/questions/265292/how-would-a-society-with-no-wood-reliably-heat-itself) How would a society with no wood reliably heat itself? (Role-playing Games Stack Exchange) (https://rpg.stackexchange.com/questions/214992/does-the-invisible-condition-mean-you-cannot-be-seen) Does the Invisible condition mean you cannot be seen? (/feeds/question/74903232) (Feed of this question and its answers) Question feed Subscribe to RSS Question feed To subscribe to this RSS feed, copy and paste this URL into your RSS reader. (https://stackoverflow.com/feeds/question/74903232) () lang-yaml (https://stackoverflow.com) (https://stackoverflow.com) Stack Overflow (/questions) Questions (/help) Help (https://chat.stackoverflow.com/?tab=site&host=stackoverflow.com) Chat (https://stackoverflow.co/) Products (https://stackoverflow.co/teams/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=footer&utm_content=teams) Teams (https://stackoverflow.co/advertising/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=footer&utm_content=advertising) Advertising (https://stackoverflow.co/advertising/employer-branding/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=footer&utm_content=talent) Talent (https://stackoverflow.co/) Company (https://stackoverflow.co/) About (https://stackoverflow.co/company/press/) Press (https://stackoverflow.co/company/work-here/) Work Here (https://stackoverflow.com/legal) Legal (https://stackoverflow.com/legal/privacy-policy) Privacy Policy (https://stackoverflow.com/legal/terms-of-service/public) Terms of Service (/contact) Contact Us Your Privacy Choices (https://stackoverflow.com/legal/cookie-policy) Cookie Policy (https://stackexchange.com) Stack Exchange Network (https://stackexchange.com/sites#technology) Technology (https://stackexchange.com/sites#culturerecreation) Culture & recreation (https://stackexchange.com/sites#lifearts) Life & arts (https://stackexchange.com/sites#science) Science (https://stackexchange.com/sites#professional) Professional (https://stackexchange.com/sites#business) Business (https://api.stackexchange.com/) API (https://data.stackexchange.com/) Data (https://stackoverflow.blog?blb=1) Blog (https://www.facebook.com/officialstackoverflow/) Facebook (https://twitter.com/stackoverflow) Twitter (https://linkedin.com/company/stack-overflow) LinkedIn (https://www.instagram.com/thestackoverflow) Instagram Site design / logo © 2025 Stack Exchange Inc; user contributions licensed under (https://stackoverflow.com/help/licensing) CC BY-SA . rev 2025.3.14.23880