InfoHeap
Tech
Navigation
  • Home
  • Tutorials
    • CSS tutorials & examples
    • CSS properties
    • Javascript cookbook
    • Linux/Unix Command Line
    • Mac
    • PHP
      • PHP functions online
      • PHP regex
    • WordPress
  • Online Tools
    • Text utilities
    • Online Lint Tools
search

Docker tutorials

  • Docker quick start guide on Mac
  • Docker quick start guide on Ubuntu
  • Docker how to add a user to group docker on Linux
  • Docker container - handy commands
  • How to get docker container IP
  • Run nginx in docker container
  • Ubuntu docker - storage driver aufs not supported error
  • How to find docker host ip on Mac
  • Docker - how to rerun a container with different flags
  • Docker managing images - command line cheat sheet
  • Install nginx and php in docker ubuntu container
 
  • Home
  • > Tutorials
  • > Docker

Docker how to add a user to group docker on Linux

on Feb 4, 2016

It is a good idea to add a user to docker group. In case user is not added to docker group, you may see the following error msg (even when docker daemon is running):

$ docker ps
Cannot connect to the Docker daemon. Is the docker daemon running on this host?

To fix this error, ether run all docker commands as root or add current user to docker group as shown below:

$ sudo usermod -aG docker user1

After this logout and login again for changes to take effect.

Suggested posts:

  1. How to resubmit robots.txt to Google
  2. LXC (Linux Containers) – quick start tutorial on Ubuntu
  3. How to fix a broken sudoers file on AWS/EC2 Linux
  4. Mac finder – change search default folder to current folder
  5. Linux – providing sudo access to a users – some best practices
  6. Linux – how to run a command as different user
  7. Docker container – handy commands
  8. Linux – how to add a user using useradd
Share this article: share on facebook share on linkedin tweet this submit to reddit
Posted in Tutorials | Tagged Docker, Linux, Tutorials, Ubuntu Linux
  • Browse content
  • Article Topics
  • Article archives
  • Contact Us
Popular Topics: Android Development | AngularJS | Apache | AWS and EC2 | Bash shell scripting | Chrome developer tools | Company results | CSS | CSS cookbook | CSS properties | CSS Pseudo Classes | CSS selectors | CSS3 | CSS3 flexbox | Devops | Git | HTML | HTML5 | Java | Javascript | Javascript cookbook | Javascript DOM | jQuery | Kubernetes | Linux | Linux/Unix Command Line | Mac | Mac Command Line | Mysql | Networking | Node.js | Online Tools | PHP | PHP cookbook | PHP Regex | Python | Python array | Python cookbook | SEO | Site Performance | SSH | Ubuntu Linux | Web Development | Webmaster | Wordpress | Wordpress customization | Wordpress How To | Wordpress Mysql Queries | InfoHeap Money

Copyright © 2025 InfoHeap.

Powered by WordPress