Microsoft MVP성태의 닷넷 이야기
오류 유형: 388. docker - Host does not exist: "default" [링크 복사], [링크+제목 복사],
조회: 19935
글쓴 사람
정성태 (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

비밀번호

댓글 작성자
 




... 121  122  123  124  125  126  127  128  129  [130]  131  132  133  134  135  ...
NoWriterDateCnt.TitleFile(s)
1844정성태1/26/201532157오류 유형: 269. USB 메모리의 용량이 비정상적으로 보여진다면? [7]
1843정성태1/24/201523386VC++: 87. 무시할 수 없는 Visual C++ 런타임 함수 성능
1842정성태1/23/201546616개발 환경 구성: 255. 노트북 키보드에 없는 BREAK 키를 다른 키로 대체하는 방법
1841정성태1/21/201520877오류 유형: 268. Win32 핸들 관련 CLR4 보안 오류 사례
1840정성태1/8/201529210오류 유형: 267. Visual Studio - CodeLens 사용 시 CPU 100% 현상
1839정성태1/5/201521791디버깅 기술: 69. windbg 분석 사례 - cpu 100% 현상 (2)
1838정성태1/4/201541959기타: 49. 윈도우 내레이터(Narrator) 기능 끄는 방법(윈도우에 파란색의 굵은 테두리 선이 나타난다면?) [4]
1837정성태1/4/201528081디버깅 기술: 68. windbg 분석 사례 - 메모리 부족 [1]
1836정성태1/4/201528038디버깅 기술: 67. windbg - 덤프 파일과 handle 정보
1835정성태1/3/201528673개발 환경 구성: 254. SQL 서버 역시 SSL 3.0/TLS 1.0만을 지원하는 듯!
1834정성태1/3/201553346개발 환경 구성: 253. TLS 1.2를 적용한 IIS 웹 사이트 구성
1833정성태1/3/201529528.NET Framework: 490. System.Data.SqlClient는 SSL 3.0/TLS 1.0만 지원하는 듯! [3]
1832정성태1/2/201521976오류 유형: 266. Azure에 응용 프로그램 게시 중 로그인 오류
1831정성태1/1/201530251디버깅 기술: 66. windbg 분석 사례 - cpu 100% 현상 (1) [1]
1830정성태1/1/201529435오류 유형: 265. svchost.exe 프로세스(IP Helper: IPHLPSVC)의 CPU 100% 현상
1829정성태12/16/201433176VC++: 86. Windows Vista부터 바뀐 Credential Provider 예제 분석 (2) [2]파일 다운로드1
1828정성태12/15/201429650VC++: 85. Windows Vista부터 바뀐 Credential Provider 예제 분석 (1) [4]파일 다운로드1
1827정성태12/12/201426060VC++: 84. CredUIPromptForWindowsCredentials Win32 API 사용법 정리
1826정성태12/11/201430281.NET Framework: 489. Socket.Listen에 전달된 backlog 인자의 의미 [6]
1825정성태12/11/201477847.NET Framework: 488. TCP 소켓 연결의 해제를 알 수 있는 방법 [10]파일 다운로드1
1824정성태12/10/201427545.NET Framework: 487. Socket.Receive 메서드의 SocketFlags.Peek 동작을 이용해 소켓 연결 유무를 확인? [8]파일 다운로드1
1823정성태12/10/201424669.NET Framework: 486. Java의 ScheduledExecutorService에 대응하는 C#의 System.Threading.Timer [2]
1822정성태12/3/201426655개발 환경 구성: 252. Xamarin 라이선스 관리 [8]
1821정성태12/1/201433724VS.NET IDE: 96. Visual Studio에서 /* ~ */ 주석을 위한 단축키(매크로)
1820정성태11/23/201421748.NET Framework: 485. Mono Profiler에서 IL 코드 변경이 가능할까? - 두 번째 이야기파일 다운로드1
1819정성태11/22/201421577오류 유형: 264. MSBuild 에러 - warning MSB3052: The parameter to the compiler is invalid,
... 121  122  123  124  125  126  127  128  129  [130]  131  132  133  134  135  ...