DEV Community

Cover image for Como usar o Docker sem ser root
Alexandre Liberato
Alexandre Liberato

Posted on

Como usar o Docker sem ser root

Adicione seu usuário ao grupo 'docker':

# vim /etc/group

Localize a linha do grupo 'docker' e adicione seu usuário ao final, após o ':' como no exemplo:

Alt Text

Se o grupo ainda não existe execute:

# groupadd docker

Para testar relogue no sistema com seu usuário ou execute o comando:

$ su - $USER

Para checar se deu certo

$ id

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay