
누군가 이 문제에 직면하여 해결했는지 확실하지 않습니다. 나는 이것을 조사하려고 노력했지만 답을 찾지 못했습니다.
그래서 설치하고 실행하려고 하면 이 경고가 표시됩니다 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'.
Windows 10 Home 버전만 있기 때문에 Windows의 Ubuntu 16.04에 docker-ce를 올바르게 설치하려고 노력해 왔습니다. Windows 10을 다른 버전으로 업그레이드할 계획이 없습니다. 나는 몇 가지를 시도했습니다. 여러 출처를 살펴보고 지침을 따랐지만 여전히 문제가 있었습니다.
https://docs.docker.com/install/linux/docker-ce/ubuntu/#set-up-the-repository
https://docs.docker.com/install/linux/docker-ce/ubuntu/#install-docker-ce-1
실행했는데 sudo systemctl status docker
다음 오류가 발생했습니다.
The command could not be located because '/usr/sbin' is not included in the PATH environment variable.
This is most likely caused by the lack of administrative privileges associated with your user account.
service: command not found
PATH를 설정하여 이 문제를 해결했습니다.
PATH="/sbin:$PATH"
이 기사에서 발췌: https://askubuntu.com/questions/972611/why-does-sbin-not-included-in-path-for-new-user
그 후 실행을 하게 되었는데 sudo service docker status
Docker가 실행되고 있지 않다는 메시지가 표시되어 실행했습니다.sudo service docker start
상태를 다시 확인해 보니 지금 실행 중이라고 뜹니다. 나는 달리고 docker info
다음을 얻었습니다.
Containers: 0
Running: 0
Paused: 0
Stopped: 0
Images: 0
Server Version: 18.09.6
Storage Driver: overlay2
Backing Filesystem: <unknown>
Supports d_type: true
Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: bb71b10fd8f58240ca47fbb579b9d1028eea7c84
runc version: 2b18fe1d885ee5083ef9f0838fee39b62d653e30
init version: fec3683
Kernel Version: 4.4.0-17134-Microsoft
Operating System: Ubuntu 16.04.4 LTS
OSType: linux
Architecture: x86_64
CPUs: 8
Total Memory: 15.89GiB
Name: DESKTOP-MA8QOES
ID: AD4R:WH7W:VHRE:ZSMY:GIE7:7ZTC:G4FK:L6AV:OTMY:QLC3:B7H3:LRC2
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
Product License: Community Engine
WARNING: No memory limit support
WARNING: No swap limit support
WARNING: No kernel memory limit support
WARNING: No oom kill disable support
WARNING: No cpu cfs quota support
WARNING: No cpu cfs period support
WARNING: No cpu shares support
WARNING: No cpuset support
다시 테스트해보니 sudo docker run hello-world
이런 메시지가 떴습니다.
Unable to find image 'hello-world:latest' locally
latest: Pulling from library/hello-world
1b930d010525: Extracting [==================================================>] 977B/977B
docker: failed to register layer: Error processing tar file(exit status 1): invalid argument.
See 'docker run --help'.
지금 이 시점에서 무엇을 해야 할지 잘 모르겠습니다... 도움을 주시면 대단히 감사하겠습니다.