docker(14)오늘의 docker error:docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock.

11420 단어 도커error
한 장비(macOS)로 1주일 만에 docker를 기동하려고 했다.

macOS
$ docker run -v /Users/administrator/Downloads/nakamori:/home/nakamori -it ubuntu /bin/bash
docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?.
See 'docker run --help'

잠시 동안 도커를 사용하지 않았습니다.

docker가 시작되지 않음



화면의 오른쪽 상단에 도커의 고래가 없다.

응용 프로그램 도커 아이콘 더블 클릭.

최신 버전을 다운로드하기 시작했다.

갱신이 끝났다.

화면의 오른쪽 상단에 도커의 고래가 있다.

같은 명령을 두드렸다.

macOS
$ docker run -v /Users/administrator/Downloads/nakamori:/home/nakamori -it ubuntu /bin/bash
Unable to find image 'ubuntu:latest' locally
latest: Pulling from library/ubuntu
5b7339215d1d: Pull complete 
14ca88e9f672: Pull complete 
a31c3b1caad4: Pull complete 
b054a26005b7: Pull complete 
Digest: sha256:9b1702dcfe32c873a770a32cfd306dd7fc1c4fd134adfb783db68defc8894b3c
Status: Downloaded newer image for ubuntu:latest
root@34ece5f89e7f:/# apt update; apt -y upgrade
Get:1 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Get:2 http://archive.ubuntu.com/ubuntu bionic InRelease [242 kB]
Get:3 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages [553 kB]
Get:4 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:5 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 Packages [4169 B]      
Get:6 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [719 kB]
Get:7 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]  
Get:8 http://security.ubuntu.com/ubuntu bionic-security/restricted amd64 Packages [5436 B]
Get:9 http://archive.ubuntu.com/ubuntu bionic/multiverse amd64 Packages [186 kB]
Get:10 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages [11.3 MB]
Get:11 http://archive.ubuntu.com/ubuntu bionic/restricted amd64 Packages [13.5 kB]                                                                                                                                             
Get:12 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages [1344 kB]                                                                                                                                                   
Get:13 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [856 kB]                                                                                                                                            
Get:14 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 Packages [7239 B]                                                                                                                                      
Get:15 http://archive.ubuntu.com/ubuntu bionic-updates/restricted amd64 Packages [10.8 kB]                                                                                                                                     
Get:16 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [1222 kB]                                                                                                                                       
Get:17 http://archive.ubuntu.com/ubuntu bionic-backports/main amd64 Packages [2496 B]                                                                                                                                          
Get:18 http://archive.ubuntu.com/ubuntu bionic-backports/universe amd64 Packages [3918 B]                                                                                                                                      
Fetched 16.8 MB in 7s (2271 kB/s)                                                                                                                                                                                              
Reading package lists... Done
Building dependency tree       
Reading state information... Done
5 packages can be upgraded. Run 'apt list --upgradable' to see them.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  gcc-8-base libgcc1 libstdc++6 libsystemd0 libudev1
5 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 717 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libsystemd0 amd64 237-3ubuntu10.23 [204 kB]
Get:2 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 gcc-8-base amd64 8.3.0-6ubuntu1~18.04.1 [18.7 kB]
Get:3 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libstdc++6 amd64 8.3.0-6ubuntu1~18.04.1 [400 kB]
Get:4 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libgcc1 amd64 1:8.3.0-6ubuntu1~18.04.1 [40.7 kB]
Get:5 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libudev1 amd64 237-3ubuntu10.23 [53.6 kB]
Fetched 717 kB in 2s (290 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
(Reading database ... 4040 files and directories currently installed.)
Preparing to unpack .../libsystemd0_237-3ubuntu10.23_amd64.deb ...
Unpacking libsystemd0:amd64 (237-3ubuntu10.23) over (237-3ubuntu10.22) ...
Setting up libsystemd0:amd64 (237-3ubuntu10.23) ...
(Reading database ... 4040 files and directories currently installed.)
Preparing to unpack .../gcc-8-base_8.3.0-6ubuntu1~18.04.1_amd64.deb ...
Unpacking gcc-8-base:amd64 (8.3.0-6ubuntu1~18.04.1) over (8.3.0-6ubuntu1~18.04) ...
Setting up gcc-8-base:amd64 (8.3.0-6ubuntu1~18.04.1) ...
(Reading database ... 4040 files and directories currently installed.)
Preparing to unpack .../libstdc++6_8.3.0-6ubuntu1~18.04.1_amd64.deb ...
Unpacking libstdc++6:amd64 (8.3.0-6ubuntu1~18.04.1) over (8.3.0-6ubuntu1~18.04) ...
Setting up libstdc++6:amd64 (8.3.0-6ubuntu1~18.04.1) ...
(Reading database ... 4040 files and directories currently installed.)
Preparing to unpack .../libgcc1_1%3a8.3.0-6ubuntu1~18.04.1_amd64.deb ...
Unpacking libgcc1:amd64 (1:8.3.0-6ubuntu1~18.04.1) over (1:8.3.0-6ubuntu1~18.04) ...
Setting up libgcc1:amd64 (1:8.3.0-6ubuntu1~18.04.1) ...
(Reading database ... 4040 files and directories currently installed.)
Preparing to unpack .../libudev1_237-3ubuntu10.23_amd64.deb ...
Unpacking libudev1:amd64 (237-3ubuntu10.23) over (237-3ubuntu10.22) ...
Setting up libudev1:amd64 (237-3ubuntu10.23) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...

docker가 시작된 것과 다른 사용자로 shell에 로그인했습니다.



su 명령 등으로, docker 기동한 사용자와 다른 ID로 shell에 login하고 있는 것과 같은 에러가 나오는 것을 확인.

exit하면 좋았다.

macOS
bash-3.2$ docker images
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.39/images/json: dial unix /var/run/docker.sock: connect: permission denied
bash-3.2$ docker images
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.39/images/json: dial unix /var/run/docker.sock: connect: permission denied
bash-3.2$ exit
exit
bash-3.2$ docker images
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.39/images/json: dial unix /var/run/docker.sock: connect: permission denied
bash-3.2$ exit
exit
KM-S05:apj administrator$ docker images
REPOSITORY                  TAG                 IMAGE ID            CREATED             SIZE
kaizenjapan/qc-nakamori     latest              5186ef78791c        3 days ago          235MB
kaizenjapan/qc-nakamori     <none>              0b0b4bb6b179        3 days ago          194MB
ubuntu                      latest              4c108a37151f        6 days ago          64.2MB
kaizenjapan/100pon          latest              07d217d26151        5 months ago        20.4GB
continuumio/anaconda3       latest              69acfdf1121f        5 months ago        3.72GB
nginx                       latest              7042885a156a        5 months ago        109MB
kaizenjapan/gccv850src      latest              5e61526ac5aa        6 months ago        2.3GB
gcc                         latest              48a9ecda4099        6 months ago        1.15GB
kaizejpanan/gccv850src      latest              48a9ecda4099        6 months ago        1.15GB
centos                      latest              1e1148e4cc2c        6 months ago        202MB
kanetugu2015/athrill_asp3   ver3.0              ffa434b44c7b        7 months ago        1.43GB

한 번 exit한 것만으로는 안된다. 이중으로 su 했던 것 같다. 이다 있다.

이 후 작업



양자 계산기 arXiv 게재 니시모리 히데미 논문 단어장 docker에서 PDF to Text & wc.awk
htps : // 코 m / 카이 젠_ 나고야 / ms / 319672853519990

오늘의 docker error:denied: requested access to the resource is denied
htps : // 코 m / 카이 젠 _ 나고야 / MS / 푸에 512 에 f5 에 0c04이다 bc25

참고 자료



macOS를 업데이트했을 때 Docker에서 개발 한 브라우저 페이지에 액세스 할 수 없었지만 Docker가 멈추었을 때
htps : // 코 m / 리오타 m / ms / f39053909 6f9723b70

상기 사례라면 다음 에러가 나왔다고 한다.

macOS
ERROR: Couldn't connect to Docker daemon. You might need to start Docker for Mac.

비슷한 상태이지만 경고 차이의 이유는 조사되지 않았습니다.

문서 이력



ver. 0.01 20190621 초고
ver. 0.02 20190622 오전이후의 작업추기
ver. 0.03 20190622 낮 참고 자료 추가
ver. 0.04 20190625 docker 기동한 것과 다른 이용자로 shell에 login하고 있었다


htps // b. 하테나. 네. jp / 구이데 / 흠뻑

좋은 웹페이지 즐겨찾기