Linux용 Windows 하위 시스템에 설치한 후 Docker에 액세스할 수 없습니다.

Linux용 Windows 하위 시스템에 설치한 후 Docker에 액세스할 수 없습니다.

Linux용 Windows 하위 시스템을 사용하여 Docker를 설치했습니다.

peter@BRIAN-PC:/mnt/c/Windows/System32$ docker version
The program 'docker' is currently not installed. You can install it by typing:
sudo apt-get install docker
peter@BRIAN-PC:/mnt/c/Windows/System32$ sudo apt-get install docker
[sudo] password for peter:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libfreetype6 os-prober
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed
  docker
0 to upgrade, 1 to newly install, 0 to remove and 50 not to upgrade.
Need to get 12.2 kB of archives.
After this operation, 65.5 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu/ trusty-updates/universe docker amd64 1.5-1 [12.2 kB]
Fetched 12.2 kB in 0s (48.5 kB/s)
Selecting previously unselected package docker.
(Reading database ... 25663 files and directories currently installed.)
Preparing to unpack .../docker_1.5-1_amd64.deb ...
Unpacking docker (1.5-1) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Setting up docker (1.5-1) ...
peter@BRIAN-PC:/mnt/c/Windows/System32$ docker version
The program 'docker' is currently not installed. You can install it by typing:
sudo apt-get install docker

분명히 나는 sudo apt-get install docker​​. 누군가 이것을 작동시키는 방법을 말해 줄 수 있습니까? 순수 Windows에 설치를 시도했지만 다른 오류가 발생했습니다. 불행히도 현재 완벽하게 작동하는 Linux 시스템에 액세스할 수 없습니다.

답변1

패키지는dockerUbuntu(Debian 및 기타 여러 배포판과 같은)에서는 그렇지 않습니다.도커, Linux 컨테이너 배포 도구이지만도커, Gnome 및 KDE용 시스템 트레이입니다. 지금은 컨테이너 관리 도구가 더 유명해졌지만 시스템 트레이는 이전에도 존재했고 여전히 패키지 이름을 갖고 있습니다. 컨테이너 관리 도구는 다음과 같은 패키지에 있습니다.docker.io.

다음과 같은 도구를 사용하여 패키지를 탐색하여 이를 확인할 수 있습니다 apt.

apt show docker               # or apt-cache show docker
apt search docker             # or apt-cache search docker
sudo apt install docker.io    # or sudo apt-get install docker.io

trusty(Ubuntu 14.04)에서 컨테이너 관리 도구의 실행 파일은 원래 로 호출되었으나 docker.io업데이트에서는 으로 변경되었으며 docker시스템 트레이 실행 파일의 이름은 으로 변경되었습니다 wmdocker. 시스템의 "명령을 찾을 수 없음" 데이터베이스가 원래 이름으로 구축되었으며 해당 캐시가 오래된 것 같습니다. 캐시를 다시 작성하려면 를 실행하십시오 update-command-not-found. 최신 캐시를 사용하면 명령 순서가 일관되었을 것입니다. 원래 Ubuntu 14.04에서는 시스템 트레이를 성공적으로 설치했고 최신 릴리스에서는 docker.io.


실제 Linux가 아닌 Linux용 Windows 하위 시스템을 사용하고 있으므로 Docker를 실행하는 것은 단순히 패키지를 설치하는 문제가 아닙니다. Docker는 Windows가 에뮬레이트하지 않는 일부 Linux 기능을 사용합니다. 이있다윈도우용 도커, 동일한 인터페이스를 가진 다른 프로그램입니다.이 서버 오류 게시물실행하는 방법을 설명합니다. 그러나 실제 Docker를 원한다면 값비싼 플라스틱 모방이 아닌 실제 Linux를 실행해야 합니다. “현재 완벽하게 작동하는 Linux 머신에 액세스할 수 없습니다.”는 가상 머신에 Linux를 설치하면 몇 분 안에 해결될 수 있습니다.

관련 정보