지구정복

[Docker] Error: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: 본문

데이터 엔지니어링 정복/Docker&Kubernetes

[Docker] Error: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock:

eeaarrtthh 2021. 9. 19. 18:11
728x90
반응형

사용자가 sudo 없이 docker명령어를 사용하려면 아래처럼 명령어를 입력한다.

sudo groupadd docker

sudo usermod -aG docker $USER

newgrp docker

docker run hello-world

reboot
728x90
반응형
Comments