# How do I run Docker without sudo access?

?

##### Post Metadata
- Posted at: over 6 years ago
- Author title: Data Science Fellow at Insight Data Science
- Net upvotes: 1


## Comments
### Comment 1

The Docker daemon binds to a Unix socket instead of a TCP port. By default that Unix socket is owned by the user root and other users can only access it using sudo. The Docker daemon always runs as the root user.

If you don’t want to preface the docker command with sudo, create a Unix group called docker and add users to it. When the Docker daemon starts, it creates a Unix socket accessible by members of the docker group.

sudo groupadd docker
sudo usermod -aG docker $USER
newgrp docker

And log out. After the login you’ll be able to run docker without sudo command.

##### Comment Metadata
- Posted at: over 6 years ago
- Author title: Student



### Comment 2

Docker has its own group &quot;docker&quot; (in Ubuntu usually the groupId is 999). So if you add any user to the docker group this user will be able to execute any docker comand.

##### Comment Metadata
- Posted at: over 6 years ago
- Author title: Jefe de proyecto en Naeva Tec




## Related Product
[Mirantis Kubernetes Engine (formerly Docker Enterprise)](https://www.g2.com/products/mirantis-kubernetes-engine-formerly-docker-enterprise/reviews)

## Related Category
[Enterprise Kubernetes Management](https://www.g2.com/categories/enterprise-kubernetes-management)

## Related discussions
- [How well does Trello scale into a larger team?](https://www.g2.com/discussions/1-how-well-does-trello-scale-into-a-larger-team)
  - Posted at: almost 13 years ago
  - Comments: 6
- [Can we please add a new section](https://www.g2.com/discussions/2-can-we-please-add-a-new-section)
  - Posted at: almost 13 years ago
  - Comments: 0
- [Quantifiable benefits from implementing your CRM](https://www.g2.com/discussions/quantifiable-benefits-from-implementing-your-crm)
  - Posted at: almost 13 years ago
  - Comments: 4


