Skip to content

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

@noelmcloughlin

Description

@noelmcloughlin

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:

  • Ensure docker group is created
  • Ensure ${USER} is added to that group (optionally).
  • Ensure docker service watches and restarts after above steps.

Describe alternatives you've considered

Additional context

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions