linux - How to show all users in dockers group? - 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/39920368/how-to-show-all-users-in-dockers-group) (https://cdn.sstatic.net/Shared/stacks.css?v=619122b796ae) (https://cdn.sstatic.net/Sites/stackoverflow/primary.css?v=02dcb5186b90) (Feed for question 'How to show all users in dockers group?') (/feeds/question/39920368) (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%2f39920368%2fhow-to-show-all-users-in-dockers-group) Sign up or (https://stackoverflow.com/users/login?ssrc=site_switcher&returnurl=https%3a%2f%2fstackoverflow.com%2fquestions%2f39920368%2fhow-to-show-all-users-in-dockers-group) 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%2f39920368%2fhow-to-show-all-users-in-dockers-group) Log in (https://stackoverflow.com/users/signup?ssrc=head&returnurl=https%3a%2f%2fstackoverflow.com%2fquestions%2f39920368%2fhow-to-show-all-users-in-dockers-group) 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/39920368/how-to-show-all-users-in-dockers-group) How to show all users in dockers group? (/questions/ask) Ask Question (2016-10-07 15:03:01Z) Asked 7 years, 11 months ago Modified (?lastactivity) (2016-10-07 15:27:28Z) 7 years, 11 months ago (Viewed 97,667 times) Viewed 98k times This question shows research effort; it is useful and clear (70:3:31e,16:49e511afe3a6b288,10:1725174066,16:adc6ade180349d7c,8:39920368,4153680fc6dcfff006e548a5af428cbccd91b75349404f5af7f09bab545eeaa1) 18 (This question does not show any research effort; it is unclear or not useful) (70:3:31e,16:730ffa00ee756647,10:1725174066,16:f9f96c26d416771d,8:39920368,2295c1acafd29eec007be5aa0205b353bec029106ef59a0acc3a136874a8e15d) Save this question. (/posts/39920368/timeline) Show activity on this post. How can I find out which users are in the docker group and allowed to start docker containers? (Docker 1.12.1) (/questions/tagged/linux) (show questions tagged 'linux') linux (/questions/tagged/docker) (show questions tagged 'docker') docker (/questions/tagged/usergroups) (show questions tagged 'usergroups') usergroups (/q/39920368) (Short permalink to this question) Share Share a link to this question Copy link (https://creativecommons.org/licenses/by-sa/3.0/) (The current license for this post: CC BY-SA 3.0) CC BY-SA 3.0 (/posts/39920368/edit) () Improve this question Follow (70:3:31e,16:132e2c8f5ca349e3,10:1725174066,16:5b17341776252531,8:39920368,1bdae111346e76799544b49d110e5a45257ed663680cfc72a546f4e10d35ac47) Follow this question to receive notifications asked (2016-10-07 15:03:01Z) Oct 7, 2016 at 15:03 (/users/5452008/soerendip) (Soerendip's user avatar) (/users/5452008/soerendip) Soerendip Soerendip (reputation score) 8,759 (15 gold badges) 15 15 gold badges (76 silver badges) 76 76 silver badges (138 bronze badges) 138 138 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) 2 Answers 2 Sorted by: (/questions/39920368/how-to-show-all-users-in-dockers-group?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:ef2121fb2678e841,10:1725174066,16:accfea342b09dcf3,8:39920850,f5cf40c30c70a5e01c577d274c3c64e6348bb250173a44f55c18b2fecb3b3c47) 35 (This answer is not useful) (70:3:31e,16:b23fba16a131b2a9,10:1725174066,16:6f6308b8e306c2c8,8:39920850,19e288a73235e791a7cb623d7afd11bfed8754cf9533f53d79c725f9e03c49d6) Save this answer. (Loading when this answer was accepted…) (/posts/39920850/timeline) Show activity on this post. You can use the following: grep /etc/group -e "docker" grep /etc/group -e "sudo" (/a/39920850) (Short permalink to this answer) Share Share a link to this answer Copy link (https://creativecommons.org/licenses/by-sa/3.0/) (The current license for this post: CC BY-SA 3.0) CC BY-SA 3.0 (/posts/39920850/edit) () Improve this answer Follow (70:3:31e,16:2182ce4830d879d4,10:1725174066,16:91723882086762ba,8:39920850,606797ee8d3df686bb348043b3802dc9ec7ca56f305ae4bbbcf51f30474d5a4a) Follow this answer to receive notifications answered (2016-10-07 15:27:28Z) Oct 7, 2016 at 15:27 (/users/5867722/farhad-farahi) (Farhad Farahi's user avatar) (/users/5867722/farhad-farahi) Farhad Farahi Farhad Farahi (reputation score 38,491) 38.5k (7 gold badges) 7 7 gold badges (78 silver badges) 78 78 silver badges (74 bronze badges) 74 74 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:08fbb9c57c1e73b8,10:1725174066,16:2d1b2602f48e1e8f,8:39920592,d96cfd1a1637a329a33e43b7ea406916a95b5ad3df7a37cc495b4c0bc455a7b6) 18 (This answer is not useful) (70:3:31e,16:c68d1c30ee39ef0a,10:1725174066,16:6fc20972de14d6aa,8:39920592,21fa1fdbcfa0427b768c9baf6f6953590fa9fca79eb0a7d8d81e06157f312eb1) Save this answer. (Loading when this answer was accepted…) (/posts/39920592/timeline) Show activity on this post. Docker creates the docker group, but also any sudoers can use Docker, so you need to check two group memberships: getent group sudo getent group docker (/a/39920592) (Short permalink to this answer) Share Share a link to this answer Copy link (https://creativecommons.org/licenses/by-sa/3.0/) (The current license for this post: CC BY-SA 3.0) CC BY-SA 3.0 (/posts/39920592/edit) () Improve this answer Follow (70:3:31e,16:8bf9b76ab0f6fa94,10:1725174066,16:476605051aa359bb,8:39920592,3e394b3491843ff22daea083977bafb30171eecf7e1c90d0dbd14ee837a862c5) Follow this answer to receive notifications answered (2016-10-07 15:13:34Z) Oct 7, 2016 at 15:13 (/users/4502597/elton-stoneman) (Elton Stoneman's user avatar) (/users/4502597/elton-stoneman) Elton Stoneman Elton Stoneman (reputation score 18,954) 19k (5 gold badges) 5 5 gold badges (49 silver badges) 49 49 silver badges (45 bronze badges) 45 45 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) (39920368) (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%2f39920368%2fhow-to-show-all-users-in-dockers-group%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/linux) (show questions tagged 'linux') linux (/questions/tagged/docker) (show questions tagged 'docker') docker (/questions/tagged/usergroups) (show questions tagged 'usergroups') usergroups 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/35659707?rq=3) (Question score (upvotes - downvotes)) 13 (https://stackoverflow.com/questions/35659707/how-do-i-add-a-container-user-to-a-user-group-in-the-docker-host?rq=3) How do I add a container user to a user group in the Docker host? (https://stackoverflow.com/q/44871049?rq=3) (Question score (upvotes - downvotes)) 7 (https://stackoverflow.com/questions/44871049/docker-run-user-group-not-working-as-expected?rq=3) Docker run - User group not working as expected? (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/62841011?rq=3) (Question score (upvotes - downvotes)) 5 (https://stackoverflow.com/questions/62841011/docker-image-add-user-to-group?rq=3) Docker image - add user to group (https://stackoverflow.com/q/65146644?rq=3) (Question score (upvotes - downvotes)) 1 (https://stackoverflow.com/questions/65146644/linux-user-groups-missing-when-user-mounted-to-container?rq=3) Linux user groups missing when user mounted to container (https://stackoverflow.com/q/68671339?rq=3) (Question score (upvotes - downvotes)) 0 (https://stackoverflow.com/questions/68671339/how-to-forward-local-users-groups-to-the-container?rq=3) How to forward local-user's groups to the container? (https://stackoverflow.com/q/69829338?rq=3) (Question score (upvotes - downvotes)) 0 (https://stackoverflow.com/questions/69829338/how-do-i-add-the-local-users-to-my-docker-container?rq=3) How do I add the local users to my docker container? (https://stackoverflow.com/q/70369278?rq=3) (Question score (upvotes - downvotes)) 10 (https://stackoverflow.com/questions/70369278/how-to-add-the-current-user-to-the-docker-group-on-macos?rq=3) How to add the current user to the Docker group on macOS? (https://stackoverflow.com/q/71501506?rq=3) (Question score (upvotes - downvotes)) 10 (https://stackoverflow.com/questions/71501506/userid-and-group-id-in-docker-run-command?rq=3) Userid and Group id in docker run command (https://stackoverflow.com/q/74850270?rq=3) (Question score (upvotes - downvotes)) 0 (https://stackoverflow.com/questions/74850270/how-to-assing-user-to-group-using-dockerfile-without-shell?rq=3) How to assing user to group using Dockerfile without shell? (https://stackexchange.com/questions?tab=hot) Hot Network Questions (TeX - LaTeX Stack Exchange) (https://tex.stackexchange.com/questions/725475/writing-an-i-with-a-line-over-it-instead-of-an-i-with-a-dot-and-a-line-over-it) Writing an i with a line over it instead of an i with a dot and a line over it (Home Improvement Stack Exchange) (https://diy.stackexchange.com/questions/306231/how-can-i-get-around-16-electrical-receptacles-in-a-small-area-with-the-least-am) How can I get around 16 electrical receptacles in a small area with the least amount of wiring? (English Language & Usage Stack Exchange) (https://english.stackexchange.com/questions/625583/word-for-a-collection-of-awards-such-as-an-olympic-athlete-s-earned-medals) Word for a collection of awards, such as an Olympic athlete’s earned medals (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? (Electrical Engineering Stack Exchange) (https://electronics.stackexchange.com/questions/723896/is-3-ohm-resistance-value-of-a-pcb-fuse-reasonable) Is 3 ohm resistance value of a PCB fuse reasonable? (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 (Super User) (https://superuser.com/questions/1854210/is-there-a-way-to-isolate-2-operating-systems-on-2-different-hard-drives) Is there a way to isolate 2 operating systems on 2 different hard drives? (Academia Stack Exchange) (https://academia.stackexchange.com/questions/213261/journal-keeps-messing-with-my-proof) Journal keeps messing with my proof (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? (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? (Bicycles Stack Exchange) (https://bicycles.stackexchange.com/questions/95292/felt-vr40-2020) Felt VR40 - 2020 (Philosophy Stack Exchange) (https://philosophy.stackexchange.com/questions/116626/what-is-opinion) What is opinion? (Biblical Hermeneutics Stack Exchange) (https://hermeneutics.stackexchange.com/questions/97559/who-is-the-referent-of-him-in-genesis-182) Who is the referent of "him" in Genesis 18:2? (Super User) (https://superuser.com/questions/1854231/why-is-gparted-distributed-as-an-iso-image-is-it-to-accommodate-linux-needs-as) Why is GParted distributed as an ISO image? Is it to accommodate Linux needs as well as Windows needs? (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? (Mathematics Stack Exchange) (https://math.stackexchange.com/questions/4965309/why-does-average-of-monte-carlo-simulations-not-hold-for-simple-problem) Why does average of Monte Carlo simulations not hold for simple problem? (Mathematics Stack Exchange) (https://math.stackexchange.com/questions/4964881/can-you-give-me-an-example-of-an-implicit-use-of-godels-completeness-theorem-s) Can you give me an example of an implicit use of Godel's Completeness Theorem, say for example in group theory? (Super User) (https://superuser.com/questions/1853966/how-to-remove-obligation-to-run-as-administrator-in-windows) How to remove obligation to run as administrator in Windows? (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? (Mathematics Stack Exchange) (https://math.stackexchange.com/questions/4965070/rings-demanding-identity-in-the-categorical-context) Rings demanding identity in the categorical context (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 (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? (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? (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? more hot questions (/feeds/question/39920368) (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/39920368) () (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