Get id of user on host, from a 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/61125441/get-id-of-user-on-host-from-a-docker) (https://cdn.sstatic.net/Shared/stacks.css?v=619122b796ae) (https://cdn.sstatic.net/Sites/stackoverflow/primary.css?v=02dcb5186b90) (Feed for question 'Get id of user on host, from a docker') (/feeds/question/61125441) (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%2f61125441%2fget-id-of-user-on-host-from-a-docker) Sign up or (https://stackoverflow.com/users/login?ssrc=site_switcher&returnurl=https%3a%2f%2fstackoverflow.com%2fquestions%2f61125441%2fget-id-of-user-on-host-from-a-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%2f61125441%2fget-id-of-user-on-host-from-a-docker) Log in (https://stackoverflow.com/users/signup?ssrc=head&returnurl=https%3a%2f%2fstackoverflow.com%2fquestions%2f61125441%2fget-id-of-user-on-host-from-a-docker) 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/61125441/get-id-of-user-on-host-from-a-docker) Get id of user on host, from a docker (/questions/ask) Ask Question (2020-04-09 16:08:13Z) Asked 4 years, 4 months ago Modified (?lastactivity) (2020-04-17 08:22:45Z) 4 years, 4 months ago (Viewed 1,621 times) Viewed 2k times This question shows research effort; it is useful and clear (70:3:31e,16:93a533c6b0dd1297,10:1725236606,16:38fd4d710c8145d9,8:61125441,16ec0a6a41387294a44044a06f1bed7719a28943d5202e0e5485de2401c7065f) -1 (This question does not show any research effort; it is unclear or not useful) (70:3:31e,16:43d19289727e1238,10:1725236606,16:decd2c4387788f63,8:61125441,82e53079f6edff80161530e4b6fff2c7beea26ab9e8d1282239ed7ac322b7cf2) Save this question. (/posts/61125441/timeline) Show activity on this post. From inside a container, I would like to get the id of a user on the host machine (what the command id -u username would output, from the host). Is there a way to accomplish this? I thought I could mount /etc/passwd in the container and grep inside, but unfortunately the users are not listed in this file on our server (possibly related to the LDAP authentication mechanism?). Thanks (/questions/tagged/docker) (show questions tagged 'docker') docker (/questions/tagged/host) (show questions tagged 'host') host (/questions/tagged/uid) (show questions tagged 'uid') uid (/q/61125441) (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/61125441/edit) () Improve this question Follow (70:3:31e,16:cad4e169ca767458,10:1725236606,16:9180994423c4d50e,8:61125441,81c8a33f8b15a73a5e89da68596f36c6ef42e16ca485e409ea76731d283aa01d) Follow this question to receive notifications asked (2020-04-09 16:08:13Z) Apr 9, 2020 at 16:08 (/users/2015376/bruno) (bruno's user avatar) (/users/2015376/bruno) bruno bruno (reputation score) 69 (5 bronze badges) 5 5 bronze badges 2 obviously not possible, what are you trying to achieve? you could mount /etc/passwd as a volume file, with the risks which come with it – (/users/661872/lawrence-cherone) (46,431 reputation) Lawrence Cherone Commented (2020-04-09 16:15:24Z, License: CC BY-SA 4.0) Apr 9, 2020 at 16:15 (this comment was edited 2 times) Here is the use case: I have a (containerized) Jupyter Hub server that spawns (containerized) single-user Jupyterlab notebook servers. The home folder of the user that logs in Jupyter Hub is mounted into the notebook server's container, so the latter should ideally run with the user's id to have full permissions on the folder. – (/users/2015376/bruno) (69 reputation) bruno Commented (2020-04-09 18:38:00Z, License: CC BY-SA 4.0) Apr 9, 2020 at 18:38 (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) 2 Answers 2 Sorted by: (/questions/61125441/get-id-of-user-on-host-from-a-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:f0e823b72abf2bf0,10:1725236606,16:63ce553a31e1ffd9,8:61267105,d6d407e357dd490a82a9c30d70d003e8b61c6da25eaf95fba53152a4919d6ae2) 1 (This answer is not useful) (70:3:31e,16:06b6a543baebc3ab,10:1725236606,16:111f256e1a30e2f6,8:61267105,3f6cd57d05922506acc4e8ef5efbe8f74e887ed75667e2c70b90e5d2524a750b) Save this answer. (Loading when this answer was accepted…) (/posts/61267105/timeline) Show activity on this post. I ended up solving this by mounting host folder /home on my container, and getting the id of the owner of user's home dir /home/ . (/a/61267105) (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/61267105/edit) () Improve this answer Follow (70:3:31e,16:3b2daac121540d60,10:1725236606,16:cd993b0453a3f1ee,8:61267105,527375261308d3330796c6d1deb96ff31b09a96c1d7cb2a7e10da4e8327f0b08) Follow this answer to receive notifications answered (2020-04-17 08:22:45Z) Apr 17, 2020 at 8:22 (/users/2015376/bruno) (bruno's user avatar) (/users/2015376/bruno) bruno bruno (reputation score) 69 (5 bronze badges) 5 5 bronze badges (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) This answer is useful (70:3:31e,16:d429cd87d4a15ab7,10:1725236606,16:6ed8637f154ca65a,8:61127115,a528630059e050320b1ea8849cce4691f2a7fc81a90f486245756b16aeaab21b) 0 (This answer is not useful) (70:3:31e,16:00ad3debf9382261,10:1725236606,16:8680e233d1b15933,8:61127115,6b88d457c0bcd02698561e60a9ae8211a8818a41878e3502c8e216406b433510) Save this answer. (Loading when this answer was accepted…) (/posts/61127115/timeline) Show activity on this post. There's no way to get information about host users from inside a container. A design goal of Docker is that the host and containers are isolated from each other. A container has no concept of a host user; from the Docker daemon point of view, Docker doesn't even really know which user requested that a container be launched. (This is doubly true if your host authentication system is something more complicated like an LDAP setup: a container simply may not have the tools or credentials required to query it, and the isolation means there's no way to somehow delegate to the host.) If a principal goal of your application is to interact with host users, or the host filesystem, or you otherwise actively don't want Docker's isolation features, it's better to run your program outside of Docker. (/a/61127115) (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/61127115/edit) () Improve this answer Follow (70:3:31e,16:aa55021499b81cf0,10:1725236606,16:d6137c423f6d55a4,8:61127115,8bbc310820f369693c4b13a5aa04cc830bc8d1922a7d2651611868f2b6d41c15) Follow this answer to receive notifications answered (2020-04-09 17:46:20Z) Apr 9, 2020 at 17:46 (/users/10008173/david-maze) (David Maze's user avatar) (/users/10008173/david-maze) David Maze David Maze (reputation score 152,059) 152k (38 gold badges) 38 38 gold badges (208 silver badges) 208 208 silver badges (259 bronze badges) 259 259 bronze badges 1 Thanks for your answer. I described the use case above : I have a containerized app (Jupyter Hub), that spawns a container (Jupyter notebook server) every time a user logs in. The app should pass the id of the user to the container it spawns, so that the latter can have access to the user home folder. – (/users/2015376/bruno) (69 reputation) bruno Commented (2020-04-09 18:43:43Z, License: CC BY-SA 4.0) Apr 9, 2020 at 18:43 (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) (61125441) (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%2f61125441%2fget-id-of-user-on-host-from-a-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) Not the answer you're looking for? Browse other questions tagged (/questions/tagged/docker) (show questions tagged 'docker') docker (/questions/tagged/host) (show questions tagged 'host') host (/questions/tagged/uid) (show questions tagged 'uid') uid 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/27925006?rq=3) (Question score (upvotes - downvotes)) 22 (https://stackoverflow.com/questions/27925006/share-files-between-host-system-and-docker-container-using-specific-uid?rq=3) Share files between host system and docker container using specific UID (https://stackoverflow.com/q/32397496?rq=3) (Question score (upvotes - downvotes)) 10 (https://stackoverflow.com/questions/32397496/docker-replicate-uid-gid-in-container-from-host?rq=3) Docker replicate UID/GID in container from host (https://stackoverflow.com/q/44026949?rq=3) (Question score (upvotes - downvotes)) 3 (https://stackoverflow.com/questions/44026949/dynamically-pick-the-user-gui-and-uid-whos-running-docker-at-the-host-from-entr?rq=3) Dynamically pick the user GUI and UID who's running Docker at the host from entrypoint (https://stackoverflow.com/q/44683119?rq=3) (Question score (upvotes - downvotes)) 63 (https://stackoverflow.com/questions/44683119/dockerfile-replicate-the-host-user-uid-and-gid-to-the-image?rq=3) Dockerfile replicate the host user UID and GID to the image (https://stackoverflow.com/q/52264775?rq=3) (Question score (upvotes - downvotes)) 2 (https://stackoverflow.com/questions/52264775/using-an-explicit-uid-gid-in-dockerfile?rq=3) Using an explicit UID/GID in Dockerfile (https://stackoverflow.com/q/52331354?rq=3) (Question score (upvotes - downvotes)) 5 (https://stackoverflow.com/questions/52331354/ensure-both-user-name-and-user-id-are-the-same-in-host-and-docker-container?rq=3) Ensure both user name and user id are the same in host and Docker container (https://stackoverflow.com/q/53744961?rq=3) (Question score (upvotes - downvotes)) 3 (https://stackoverflow.com/questions/53744961/is-it-possible-to-set-the-uid-for-a-container-from-docker-compose?rq=3) Is it possible to set the UID for a container from docker-compose? (https://stackoverflow.com/q/54172130?rq=3) (Question score (upvotes - downvotes)) 0 (https://stackoverflow.com/questions/54172130/how-to-know-the-login-user-of-a-docker-image?rq=3) How to know the login user of a docker image? (https://stackoverflow.com/q/57731239?rq=3) (Question score (upvotes - downvotes)) 8 (https://stackoverflow.com/questions/57731239/using-useradd-in-a-dockerfile?rq=3) Using useradd in a Dockerfile (https://stackoverflow.com/q/66349577?rq=3) (Question score (upvotes - downvotes)) 2 (https://stackoverflow.com/questions/66349577/how-to-get-user-uid-and-name-used-in-docker-image?rq=3) How to get user uid and name used in docker image (https://stackexchange.com/questions?tab=hot) Hot Network Questions (Unix & Linux Stack Exchange) (https://unix.stackexchange.com/questions/782766/cannot-open-an-html-file-stored-on-ram-disk-with-a-browser) Cannot open an HTML file stored on RAM-disk with a browser (Mathematics Educators Stack Exchange) (https://matheducators.stackexchange.com/questions/28073/best-way-to-explain-the-thinking-steps-from-x2-9-to-x-%c2%b13) Best way to explain the thinking steps from x^2 = 9 to x=±3 (Role-playing Games Stack Exchange) (https://rpg.stackexchange.com/questions/213201/held-action-sneak-attack-after-action-surge) Held Action Sneak attack after action surge (Geographic Information Systems Stack Exchange) (https://gis.stackexchange.com/questions/485444/qgis-connect-to-the-mactiondigitizewithcurve-map-tool-toggled-signal) QGIS: Connect to the mActionDigitizeWithCurve map tool toggled signal (Academia Stack Exchange) (https://academia.stackexchange.com/questions/213258/my-supervisor-wants-me-to-switch-to-another-software-programming-language-that-i) My supervisor wants me to switch to another software/programming language that I am not proficient in. What to do? (Code Review Stack Exchange) (https://codereview.stackexchange.com/questions/293557/coding-exercise-to-represent-an-integer-as-words-using-python) Coding exercise to represent an integer as words using python (Photography Stack Exchange) (https://photo.stackexchange.com/questions/135530/took-a-pic-of-old-school-friend-in-the-80s-who-is-now-quite-famous-and-written-a) Took a pic of old school friend in the 80s who is now quite famous and written a huge selling memoir. Pic has ben used in book without permission (Computer Science Stack Exchange) (https://cs.stackexchange.com/questions/169588/functor-composition-rule-necessary) Functor composition rule necessary? (Writing Stack Exchange) (https://writing.stackexchange.com/questions/70046/why-is-simpler-prose-more-popular-these-days) Why is simpler prose more popular these days? (MathOverflow) (https://mathoverflow.net/questions/477880/in-top-how-do-conjugate-homorphisms-of-groups-induce-homotopies-of-classifyin) In Top, *how* do conjugate homorphisms of groups induce homotopies of classifying maps? (Space Exploration Stack Exchange) (https://space.stackexchange.com/questions/66793/what-is-happening-when-a-tv-satellite-stops-broadcasting-during-an-eclipse) What is happening when a TV satellite stops broadcasting during an "eclipse"? (Role-playing Games Stack Exchange) (https://rpg.stackexchange.com/questions/213213/does-gravity-well-work-with-blade-ward) Does Gravity Well work with Blade Ward? (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? (Worldbuilding Stack Exchange) (https://worldbuilding.stackexchange.com/questions/261344/world-building-knowledgebase-how-to-write-good-military-world-building) World Building Knowledgebase - How to write good Military World Building (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? (Law Stack Exchange) (https://law.stackexchange.com/questions/104728/how-specific-does-the-gdpr-require-you-to-be-when-providing-personal-information) How specific does the GDPR require you to be when providing personal information to the police? (Role-playing Games Stack Exchange) (https://rpg.stackexchange.com/questions/213204/lore-reasons-for-being-faithless) Lore reasons for being faithless (TeX - LaTeX Stack Exchange) (https://tex.stackexchange.com/questions/725577/ms-option-in-memoir-class) ms option in memoir class (Travel Stack Exchange) (https://travel.stackexchange.com/questions/191120/fcc-regulations-stipulate-that-personal-electronic-devices-must-be-set-to-airpla) FCC regulations stipulate that personal electronic devices must be set to airplane mode during flight. Are there any exceptions? (Super User) (https://superuser.com/questions/1854293/why-am-i-getting-a-following-unit-is-out-of-order-error-sc-990-00-on-a-rico) Why am I getting a "Following unit is out of order." error (SC 990-00) on a Ricoh Aficio MP 4002 SP? (Physics Stack Exchange) (https://physics.stackexchange.com/questions/826203/how-is-it-possible-to-know-a-proposed-perpetual-motion-machine-wont-work-withou) How is it possible to know a proposed perpetual motion machine won't work without even looking at it? (German Language Stack Exchange) (https://german.stackexchange.com/questions/77882/can-you-use-sollen-the-same-way-as-should-in-sentences-about-possibility-tha) Can you use 'sollen' the same way as 'should' in sentences about possibility that something happens? (Worldbuilding Stack Exchange) (https://worldbuilding.stackexchange.com/questions/261340/could-an-alien-pathogen-actually-have-an-effect-on-us) Could an alien pathogen actually have an effect on us? (Ask Ubuntu) (https://askubuntu.com/questions/1525051/does-it-pay-to-put-effort-in-fixing-this-problem-or-better-reinstall-ubuntu-24-0) Does it pay to put effort in fixing this problem or better reinstall Ubuntu 24.04 from scratch? more hot questions (/feeds/question/61125441) (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/61125441) () (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