프로그래밍/ETC

[Ubuntu] docker 에러 해결 "docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?"

research_notes 2023. 4. 6. 12:04
728x90
반응형

 

docker 설치 후, 명령어를 실행했을 때 아래와 같은 에러가 발생한다.

$ sudo docker run hello-world
docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?.
See 'docker run --help'.

 

아래 명령어로 docker 실행 확인 --> 실행되지 않고 있음!

$ service docker status
* Docker is not running

 

 

docker 실행시키기

$ sudo service docker start
* Starting Docker: docker

 

다시 docker 실행 확인해보기

$ service docker status
* Docker is running

 

docker 명령어 실행해보면 에러 없이 잘 실행되는 것을 확인할 수 있음.

$ sudo docker run hello-world
[sudo] password for user:

Hello from Docker!
This message shows that your installation appears to be working correctly.

To generate this message, Docker took the following steps:
 1. The Docker client contacted the Docker daemon.
 2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
    (amd64)
 3. The Docker daemon created a new container from that image which runs the
    executable that produces the output you are currently reading.
 4. The Docker daemon streamed that output to the Docker client, which sent it
    to your terminal.

To try something more ambitious, you can run an Ubuntu container with:
 $ docker run -it ubuntu bash

Share images, automate workflows, and more with a free Docker ID:
 https://hub.docker.com/

For more examples and ideas, visit:
 https://docs.docker.com/get-started/

 

2023.04.12 - [프로그래밍/ETC] - [Ubuntu] docker 에러 해결 "docker: permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock"

 

[Ubuntu] docker 에러 해결 "docker: permission denied while trying to connect to the Docker daemon socket at unix:///var/run/

docker 설치 후, 명령어를 실행했을 때 아래와 같은 에러가 발생. $ fmriprep-docker docker: permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post "http://%2Fvar%2Frun%2Fdocker.sock/v1.2

kimtutor.tistory.com

 

728x90
반응형