Microsoft MVP성태의 닷넷 이야기
오류 유형: 388. docker - Host does not exist: "default" [링크 복사], [링크+제목 복사],
조회: 12580
글쓴 사람
정성태 (techsharer at outlook.com)
홈페이지
첨부 파일
 

docker - Host does not exist: "default"

docker-machine.exe를 실행할 때 다음과 같은 오류가 발생할 수 있습니다.

C:\Windows\System32>docker-machine start default
Host does not exist: "default"

실제로 "default"라는 이름으로 등록된 가상 머신이 없습니다.

C:\Windows\System32>docker-machine ls
NAME   ACTIVE   DRIVER   STATE   URL   SWARM   DOCKER   ERRORS

따라서, 생성해줘야 하는데 이번에는 다음과 같은 오류가 발생합니다.

C:\Windows\System32>docker-machine create default
Creating CA: C:\Users\TestUser\.docker\machine\certs\ca.pem
Creating client certificate: C:\Users\TestUser\.docker\machine\certs\cert.pem
Running pre-create checks...
Error with pre-create check: "VBoxManage not found. Make sure VirtualBox is installed and VBoxManage is in the path"

"create"의 기본 동작이 "VirtualBox"로 되어 있기 때문인데, 명시적으로 "-driver" (또는 "-d") 옵션으로 hyperv를 지정하면 정상적으로 생성이 됩니다.

C:\Windows\System32>docker-machine create -d hyperv default
Running pre-create checks...
(default) Image cache directory does not exist, creating it at C:\Users\TestUser\.docker\machine\cache...
(default) No default Boot2Docker ISO found locally, downloading the latest release...
(default) Latest release for github.com/boot2docker/boot2docker is v17.05.0-ce
(default) Downloading C:\Users\TestUser\.docker\machine\cache\boot2docker.iso from https://github.com/boot2docker/boot2docker/releases/download/v17.05.0-ce/boot2docker.iso...
(default) 0%....10%....20%....30%....40%....50%....60%....70%....80%....90%....100%
Creating machine...
(default) Copying C:\Users\TestUser\.docker\machine\cache\boot2docker.iso to C:\Users\TestUser\.docker\machine\machines\default\boot2docker.iso...
(default) Creating SSH key...
(default) Creating VM...
(default) Using switch "vpc-switch"
(default) Creating VHD
(default) Starting VM...
(default) Waiting for host to start...
Waiting for machine to be running, this may take a few minutes...
Detecting operating system of created instance...
Waiting for SSH to be available...
Detecting the provisioner...
Provisioning with boot2docker...
Copying certs to the local machine directory...
Copying certs to the remote machine...
Setting Docker configuration on the remote daemon...
Checking connection to Docker...
Docker is up and running!
To see how to connect your Docker Client to the Docker Engine running on this virtual machine, run: docker-machine env default

이후, Hyper-V 관리 콘솔에서 "default"라는 이름의 가상 머신이 생성된 것을 확인할 수 있습니다.




[이 글에 대해서 여러분들과 의견을 공유하고 싶습니다. 틀리거나 미흡한 부분 또는 의문 사항이 있으시면 언제든 댓글 남겨주십시오.]







[최초 등록일: ]
[최종 수정일: 5/19/2017]

Creative Commons License
이 저작물은 크리에이티브 커먼즈 코리아 저작자표시-비영리-변경금지 2.0 대한민국 라이센스에 따라 이용하실 수 있습니다.
by SeongTae Jeong, mailto:techsharer at outlook.com

비밀번호

댓글 작성자
 




... 61  62  63  64  65  [66]  67  68  69  70  71  72  73  74  75  ...
NoWriterDateCnt.TitleFile(s)
11977정성태7/6/201914699오류 유형: 554. git push - error: RPC failed; HTTP 413 curl 22 The requested URL returned error: 413 Request Entity Too Large
11976정성태7/4/20199067오류 유형: 553. (잘못 인증 한 후) 원격 git repo 재인증 시 "remote: HTTP Basic: Access denied" 오류 발생
11975정성태7/4/201917486개발 환경 구성: 448. Visual Studio Code에서 콘솔 응용 프로그램 개발 시 "입력"받는 방법
11974정성태7/4/201912863Linux: 22. "Visual Studio Code + Remote Development"로 윈도우 환경에서 리눅스(CentOS 7) C/C++ 개발
11973정성태7/4/201912147Linux: 21. 리눅스에서 공유 라이브러리가 로드되지 않는다면?
11972정성태7/3/201914890.NET Framework: 847. JAVA와 .NET 간의 AES 암호화 연동 [1]파일 다운로드1
11971정성태7/3/201912063개발 환경 구성: 447. Visual Studio Code에서 OpenCvSharp 개발 환경 구성
11970정성태7/2/201910455오류 유형: 552. 웹 브라우저에서 파일 다운로드 후 "Running security scan"이 끝나지 않는 문제
11969정성태7/2/201910838Math: 63. C# - 3층 구조의 신경망파일 다운로드1
11968정성태7/1/201917149오류 유형: 551. Visual Studio Code에서 Remote-SSH 연결 시 "Opening Remote..." 단계에서 진행되지 않는 문제 [1]
11967정성태7/1/201911420개발 환경 구성: 446. Synology NAS를 Windows 10에서 iSCSI로 연결하는 방법
11966정성태6/30/201910823Math: 62. 활성화 함수에 따른 뉴런의 출력을 그리드 맵으로 시각화파일 다운로드1
11965정성태6/30/201911592.NET Framework: 846. C# - 2차원 배열을 1차원 배열로 나열하는 확장 메서드파일 다운로드1
11964정성태6/30/201913086Linux: 20. C# - Linux에서의 Named Pipe를 이용한 통신
11963정성태6/29/201912808Linux: 19. C# - .NET Core Unix Domain Socket 사용 예제
11962정성태6/27/201910520Math: 61. C# - 로지스틱 회귀를 이용한 선형분리 불가능 문제의 분류파일 다운로드1
11961정성태6/27/201910059Graphics: 37. C# - PLplot - 출력 모음(Family File Output)
11960정성태6/27/201910855Graphics: 36. C# - PLplot의 16색 이상을 표현하는 방법과 subpage를 이용한 그리드 맵 표현
11959정성태6/27/201912056Graphics: 35. matplotlib와 PLplot의 한글 처리
11958정성태6/25/201916372Linux: 18. C# - .NET Core Console로 리눅스 daemon 프로그램 만드는 방법 [6]
11957정성태6/24/201915406Windows: 160. WMI 쿼리를 명령행에서 간단하게 수행하는 wmic.exe [2]
11956정성태6/24/201913385Linux: 17. CentOS 7에서 .NET Core Web App 실행 환경 구성 [1]
11955정성태6/20/201911662Math: 60. C# - 로지스틱 회귀를 이용한 분류파일 다운로드1
11954정성태6/20/201911158오류 유형: 550. scp - sudo: no tty present and no askpass program specified
11953정성태6/20/201910016오류 유형: 549. The library 'libhostpolicy.so' required to execute the application was not found in '...'
11952정성태6/20/201910799Linux: 16. 우분투, Centos의 Netbios 호스트 이름 풀이 방법
... 61  62  63  64  65  [66]  67  68  69  70  71  72  73  74  75  ...