docker-compose: group_add works with group id but not with group name - 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/60056354/docker-compose-group-add-works-with-group-id-but-not-with-group-name) (https://cdn.sstatic.net/Shared/stacks.css?v=619122b796ae) (https://cdn.sstatic.net/Sites/stackoverflow/primary.css?v=02dcb5186b90) (Feed for question 'docker-compose: group_add works with group id but not with group name') (/feeds/question/60056354) (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 . (e2a58aec89e0105273f31cf44dffd45d868462dc661de60a7d67e669a7370ceb) (1) (undefined) (2.0) Sign up with Google Sign up with GitHub OR (e2a58aec89e0105273f31cf44dffd45d868462dc661de60a7d67e669a7370ceb) (1) (undefined) Email Password (8+ characters (at least 1 letter & 1 number)) Sign up Already have an account? (/users/login) Log in (e2a58aec89e0105273f31cf44dffd45d868462dc661de60a7d67e669a7370ceb) () 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%2f60056354%2fdocker-compose-group-add-works-with-group-id-but-not-with-group-name) Sign up or (https://stackoverflow.com/users/login?ssrc=site_switcher&returnurl=https%3a%2f%2fstackoverflow.com%2fquestions%2f60056354%2fdocker-compose-group-add-works-with-group-id-but-not-with-group-name) 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%2f60056354%2fdocker-compose-group-add-works-with-group-id-but-not-with-group-name) Log in (https://stackoverflow.com/users/signup?ssrc=head&returnurl=https%3a%2f%2fstackoverflow.com%2fquestions%2f60056354%2fdocker-compose-group-add-works-with-group-id-but-not-with-group-name) Sign up (/) 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 Now available on Stack Overflow for Teams! AI features where you work: search, IDE, and chat. (https://stackoverflow.co/teams/ai/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=side-bar&utm_content=overflowai-learn-more) Learn more (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 (https://cdn.sstatic.net/Sites/stackoverflow/Img/apple-touch-icon.png?v=c78bd457575a) (/questions/60056354/docker-compose-group-add-works-with-group-id-but-not-with-group-name) docker-compose: group_add works with group id but not with group name (/questions/ask) Ask Question (2020-02-04 11:25:22Z) Asked 4 years, 7 months ago Modified (?lastactivity) (2020-04-11 17:34:29Z) 4 years, 4 months ago (Viewed 20,970 times) Viewed 21k times This question shows research effort; it is useful and clear (70:3:31e,16:7e1ee02312e82c72,10:1725174525,16:9a045d8da4fe5119,8:60056354,477d922ffc8266e25ce9a5a6f7583e4347338db920ca835cafdc2f97b68c2000) 10 (This question does not show any research effort; it is unclear or not useful) (70:3:31e,16:7385be84f0f66760,10:1725174525,16:528026660e6a6098,8:60056354,3b493ff7e17d69cff1d0d6a89f7dcb826ecf82f63e7493eb30ad8fd7e150a60d) Save this question. (/posts/60056354/timeline) Show activity on this post. I have a container that needs to run other containers at some point. I use group_add to add my container's user to the host's docker user group. This works fine if I set the group id, but not with the group name. Documentation says it should work with both (https://docs.docker.com/compose/compose-file/compose-file-v2/#group_add) https://docs.docker.com/compose/compose-file/compose-file-v2/#group_add . Any ideas on this issue ? Here is a simplified version of my docker-compose file : version: '2.1' services: my-worker: image: workers/data-handler:1.0.2 volumes: - /var/run/docker.sock:/var/run/docker.sock group_add: - 994 #docker group id command: run (/questions/tagged/docker) (show questions tagged 'docker') docker (/questions/tagged/docker-compose) (show questions tagged 'docker-compose') docker-compose (/q/60056354) (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/60056354/edit) () Improve this question Follow (70:3:31e,16:c7957825d016d247,10:1725174525,16:4127eacde15f95a6,8:60056354,911634330c8deeb512db057f0760a4b8708763c126ad1e61b02ce0c12ceaaf8e) Follow this question to receive notifications asked (2020-02-04 11:25:22Z) Feb 4, 2020 at 11:25 (/users/5554666/rafik-saad) (Rafik Saad's user avatar) (/users/5554666/rafik-saad) Rafik Saad Rafik Saad (reputation score) 626 (1 gold badge) 1 1 gold badge (5 silver badges) 5 5 silver badges (10 bronze badges) 10 10 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/60056354/docker-compose-group-add-works-with-group-id-but-not-with-group-name?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:870135ad374dd939,10:1725174525,16:e63abaa08e3a4dbc,8:61160992,94f9fd8daa0c3d553fa6ac800d242df1fe186c634d446e94fa50e8da90d14430) 3 (This answer is not useful) (70:3:31e,16:a698ce714360b07f,10:1725174525,16:c1b8e4e049cc0f24,8:61160992,a829f01f8d67f1d02a41ca002d48a152b95b56880fe590916609c1875b4576dd) Save this answer. (Loading when this answer was accepted…) (/posts/61160992/timeline) Show activity on this post. It is likely that the docker group inside the image does not have the same group id as the host. Check the group id of docker inside the container: $ getent group docker | cut -d: -f3 When you use group_add: docker it looks up the docker group inside the container, so your user won't have the right permissions. Since you are mounting the docker.sock file, it will use the host permissions (including ids), so you need to provide the correct id. I have not got this to work in my environment in a workable fashion and resorted to a shell script instead of docker-compose since it worked in my use case and I am not using the extra functionality docker-compose provides. #!/bin/bash DOCKER_GROUP=$(getent group docker | cut -d: -f3) docker run \ -v /var/run/docker.sock:/var/run/docker.sock \ --group-add $DOCKER_GROUP \ workers/data-handler:1.0.2 (/a/61160992) (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/61160992/edit) () Improve this answer Follow (70:3:31e,16:529c411d9fddd537,10:1725174525,16:a317b3cb1a7341d9,8:61160992,6b9ae7ae7d0a7082865b250286d8c75553a78c657bbce32e8209fb71c034c11d) Follow this answer to receive notifications answered (2020-04-11 17:34:29Z) Apr 11, 2020 at 17:34 (/users/2721883/clcto) (clcto's user avatar) (/users/2721883/clcto) clcto clcto (reputation score) 9,598 (22 silver badges) 22 22 silver badges (42 bronze badges) 42 42 bronze badges 2 The docker group gid inside the container should be irrelevant according to the docker run documentation (unless there's a bug in a corner case when --group-add=name conflicts with an existing name inside the container and it silently ignores the command). The official Docker documentation shows that --group-add=docker will lookup the GID on the host, and map that thru to the same GID inside the container and grant the executing container user membership in that group regardless of whether the host group is specified by name or explicit GID. – (/users/388082/mtalexan) (713 reputation) mtalexan Commented (2023-12-13 14:41:18Z, License: CC BY-SA 4.0) Dec 13, 2023 at 14:41 (number of 'useful comment' votes received) 2 @mtalexan could you point me to the documentation? I didn't see that level of detail on the (https://docs.docker.com/engine/reference/run/#additional-groups) docker run reference page . Maybe this has been functionality has been added in the last 2 and half years, and I will try to see if I can reproduce with latest docker I have installed. – (/users/2721883/clcto) (9,598 reputation) clcto Commented (2023-12-13 21:17:55Z, License: CC BY-SA 4.0) Dec 13, 2023 at 21:17 (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) (60056354) (false) () Your Answer Reminder: Answers generated by artificial intelligence tools are not allowed on Stack Overflow. (/help/gen-ai-policy) Learn more (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 (e2a58aec89e0105273f31cf44dffd45d868462dc661de60a7d67e669a7370ceb) Sign up or (/users/login?ssrc=question_page&returnurl=https%3a%2f%2fstackoverflow.com%2fquestions%2f60056354%2fdocker-compose-group-add-works-with-group-id-but-not-with-group-name%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) Not the answer you're looking for? Browse other questions tagged (/questions/tagged/docker) (show questions tagged 'docker') docker (/questions/tagged/docker-compose) (show questions tagged 'docker-compose') docker-compose or (/questions/ask) ask your own question . The Overflow Blog (https://stackoverflow.blog/2024/08/30/mobile-observability-open-telemetry-embrace-ios-android-austin-emmons/?cb=1) (Mobile Observability: monitoring performance through cracked screens, old batteries, and crappy Wi-Fi) Mobile Observability: monitoring performance through cracked screens, old... Featured on Meta (Meta Stack Exchange) (https://meta.stackexchange.com/questions/401324/announcing-a-change-to-the-data-dump-process?cb=1) Announcing a change to the data-dump process (Meta Stack Exchange) (https://meta.stackexchange.com/questions/402121/bringing-clarity-to-status-tag-usage-on-meta-sites?cb=1) Bringing clarity to status tag usage on meta sites (Meta Stack Overflow) (https://meta.stackoverflow.com/questions/431331/what-does-a-new-user-need-in-a-homepage-experience-on-stack-overflow?cb=1) What does a new user need in a homepage experience on Stack Overflow? (Meta Stack Overflow) (https://meta.stackoverflow.com/questions/431399/staging-ground-reviewer-motivation?cb=1) Staging Ground Reviewer Motivation (Meta Stack Overflow) (https://meta.stackoverflow.com/questions/431273/feedback-requested-how-do-you-use-tag-hover-descriptions-for-curating-and-do-yo?cb=1) (Feedback requested: How do you use tag hover descriptions for curating and do you use the RSS feed feature?) Feedback requested: How do you use tag hover descriptions for curating and do... Related (https://stackoverflow.com/q/40462189?rq=3) (Question score (upvotes - downvotes)) 208 (https://stackoverflow.com/questions/40462189/docker-compose-set-user-and-group-on-mounted-volume?rq=3) Docker-compose set user and group on mounted volume (https://stackoverflow.com/q/44762394?rq=3) (Question score (upvotes - downvotes)) 25 (https://stackoverflow.com/questions/44762394/groupadd-command-not-found-in-docker-container-even-though-i-install-it-and-i?rq=3) "groupadd: Command not found" in docker container even though I install it and I am root (https://stackoverflow.com/q/46204643?rq=3) (Question score (upvotes - downvotes)) 2 (https://stackoverflow.com/questions/46204643/is-there-any-way-to-specify-the-group-name-and-id-for-a-group-with-docker-run?rq=3) Is there any way to specify the group name AND id for a group with docker run --group-add? (https://stackoverflow.com/q/48105564?rq=3) (Question score (upvotes - downvotes)) 0 (https://stackoverflow.com/questions/48105564/using-groupadd-in-docker-container?rq=3) Using `groupadd` in Docker container (https://stackoverflow.com/q/51209251?rq=3) (Question score (upvotes - downvotes)) 3 (https://stackoverflow.com/questions/51209251/groupadd-invalid-group-id-laradock-error-when-running-docker-compose-up?rq=3) groupadd: invalid group ID 'laradock' error when running docker-compose up (https://stackoverflow.com/q/56305613?rq=3) (Question score (upvotes - downvotes)) 38 (https://stackoverflow.com/questions/56305613/cant-add-user-to-docker-group?rq=3) Can't add user to docker group (https://stackoverflow.com/q/56960355?rq=3) (Question score (upvotes - downvotes)) 10 (https://stackoverflow.com/questions/56960355/docker-compose-throws-adduser-group-www-data-in-use?rq=3) Docker compose throws - adduser: group 'www-data' in use (https://stackoverflow.com/q/59705817?rq=3) (Question score (upvotes - downvotes)) 1 (https://stackoverflow.com/questions/59705817/why-group-name-docker-is-not-created-on-installation-of-docker-on-mac?rq=3) Why group name "docker" is not created on installation of docker on mac? (https://stackoverflow.com/q/70237632?rq=3) (Question score (upvotes - downvotes)) 29 (https://stackoverflow.com/questions/70237632/how-can-i-rename-docker-compose-yml-containers-group-in-docker-desktop?rq=3) How can I rename docker-compose.yml containers group in docker desktop? (https://stackoverflow.com/q/74510166?rq=3) (Question score (upvotes - downvotes)) 0 (https://stackoverflow.com/questions/74510166/azure-and-docker-compose-assigning-a-resource-group?rq=3) Azure and Docker Compose : assigning a Resource Group (https://stackexchange.com/questions?tab=hot) Hot Network Questions (Computational Science Stack Exchange) (https://scicomp.stackexchange.com/questions/44505/fast-algorithm-to-obtain-an-orthogonal-vector-to-a-set-of-vectors) Fast algorithm to obtain an orthogonal vector to a set of vectors (Science Fiction & Fantasy Stack Exchange) (https://scifi.stackexchange.com/questions/291223/a-short-story-about-a-boy-who-was-the-son-of-a-normal-woman-and-a-vaguely-huma) A short story about a boy who was the son of a "normal" woman and a vaguely human denizen of the deep (Science Fiction & Fantasy Stack Exchange) (https://scifi.stackexchange.com/questions/291247/what-is-a-hard-boiled-turtle-slapper) What is a "hard-boiled turtle-slapper"? (Geographic Information Systems Stack Exchange) (https://gis.stackexchange.com/questions/485416/is-the-ilike-operator-in-qgis-not-working-correctly) Is the ILIKE Operator in QGIS not working correctly? (Science Fiction & Fantasy Stack Exchange) (https://scifi.stackexchange.com/questions/291255/a-sf-novel-where-one-character-makes-a-light-portrait-of-another-one-with-hug) A SF novel where one character makes a "light portrait" of another one, with huge consequences (Electrical Engineering Stack Exchange) (https://electronics.stackexchange.com/questions/723998/replacing-aircon-capacitor-using-off-brand-same-spec-vs-lower-higher-spec-from) Replacing aircon capacitor, using off brand same spec vs lower/higher spec from correct brand? (Artificial Intelligence Stack Exchange) (https://ai.stackexchange.com/questions/46632/does-someone-know-when-gpt5-will-be-publicly-available) Does someone know when GPT5 will be publicly available? (Movies & TV Stack Exchange) (https://movies.stackexchange.com/questions/123329/70s-80s-animation-with-an-island-of-robots) 70s-80s animation with an island of robots (Biology Stack Exchange) (https://biology.stackexchange.com/questions/115272/how-do-eradicated-diseases-make-a-comeback) How do eradicated diseases make a comeback? (Travel Stack Exchange) (https://travel.stackexchange.com/questions/191091/esta-is-not-letting-me-pay) ESTA is not letting me pay (Politics Stack Exchange) (https://politics.stackexchange.com/questions/88867/has-the-us-said-why-electing-judges-is-bad-in-mexico-but-good-in-the-us) Has the US said why electing judges is bad in Mexico but good in the US? (Electrical Engineering Stack Exchange) (https://electronics.stackexchange.com/questions/723967/what-is-the-purpose-of-these-33-ohm-series-resistors-on-the-rmii-side-of-the-lan) What is the purpose of these 33-ohm series resistors on the RMII side of the LAN8742A? (Travel Stack Exchange) (https://travel.stackexchange.com/questions/191096/overstayed-schengen-but-can-i-switch-to-us-passport) Overstayed Schengen but can I switch to US passport? (English Language Learners Stack Exchange) (https://ell.stackexchange.com/questions/356664/why-is-there-no-article-after-by) Why is there no article after 'by'? (MathOverflow) (https://mathoverflow.net/questions/477943/reconstruction-of-riemann-surface-from-a-germ-of-holomorphic-function) Reconstruction of Riemann surface from a germ of holomorphic function (Science Fiction & Fantasy Stack Exchange) (https://scifi.stackexchange.com/questions/291246/what-story-starts-off-with-the-character-waking-up-in-a-battlefield-with-wolves) What story starts off with the character waking up in a battlefield with wolves and vultures and snow? (Physics Stack Exchange) (https://physics.stackexchange.com/questions/826220/is-the-spectrum-of-hawking-radiation-identical-to-that-of-thermal-radiation) Is the spectrum of Hawking radiation identical to that of thermal radiation? (Home Improvement Stack Exchange) (https://diy.stackexchange.com/questions/306167/what-is-this-device-in-my-ceiling-making-out-of-battery-chirps) What is this device in my ceiling making out of battery chirps? (Travel Stack Exchange) (https://travel.stackexchange.com/questions/191100/do-passengers-transiting-in-yvr-vancouver-from-international-to-us-go-through) Do passengers transiting in YVR (Vancouver) from international to US go through Canadian immigration? (Politics Stack Exchange) (https://politics.stackexchange.com/questions/88849/how-can-judicial-independence-be-jeopardised-by-politicians-criticism) How can judicial independence be jeopardised by politicians' criticism? (TeX - LaTeX Stack Exchange) (https://tex.stackexchange.com/questions/725529/modify-lplfitch-proof-style) Modify lplfitch proof style (Cryptography Stack Exchange) (https://crypto.stackexchange.com/questions/112802/which-hash-algorithms-support-binary-input-of-arbitrary-bit-length) Which hash algorithms support binary input of arbitrary bit length? (Stack Overflow) (https://stackoverflow.com/questions/78933594/how-to-count-mismatches-between-two-rows-column-by-column-r) How to count mismatches between two rows, column by column R? (Worldbuilding Stack Exchange) (https://worldbuilding.stackexchange.com/questions/261316/how-much-easier-harder-would-it-be-to-colonize-space-if-humans-found-a-method-of) How much easier/harder would it be to colonize space if humans found a method of giving ourselves bodies that could survive in almost anything? more hot questions (/feeds/question/60056354) (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/60056354) () 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 Cookie Settings (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 © 2024 Stack Exchange Inc; user contributions licensed under (https://stackoverflow.com/help/licensing) CC BY-SA . rev 2024.8.29.14628 By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our (https://stackoverflow.com/legal/cookie-policy) Cookie Policy . Accept all cookies Necessary cookies only Customize settings