saltstack-formulas / docker-formula

Install and set up Docker
http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html
Other
136 stars 330 forks source link

[FEATURE] docker group created (mininium) & user added (optional) #304

Open noelmcloughlin opened 3 years ago

noelmcloughlin commented 3 years ago

Is your feature request related to a problem?

Describe the solution you'd like

After installing docker using the formula on Ubuntu 20.04 I cannot run non-root tools such as minikube because of authorization issue.

- docker: Not healthy: "docker version --format {{.Server.Os}}-{{.Server.Version}}" exit status 1: Got permission de
nied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdoc
ker.sock/v1.40/version: dial unix /var/run/docker.sock: connect: permission denied
  - docker: Suggestion: Add your user to the 'docker' group: 'sudo usermod -aG docker $USER && newgrp docker' <https:/
/docs.docker.com/engine/install/linux-postinstall/>

This is a classic post-installation error so I was surprised that even docker group does not exist. https://www.digitalocean.com/community/questions/how-to-fix-docker-got-permission-denied-while-trying-to-connect-to-the-docker-daemon-socket

The wanted feature is:

Describe alternatives you've considered

Additional context

tyhunt99 commented 2 years ago

+1 This would be super useful and is something I recall being supported in the past.