一
windows開發整docker就是痛苦,在公司win7電腦想拿起幾年沒再用的docker
結果直接報錯
Error getting IP address: ssh command error:
command : ip addr show
err : exit status 255
看起來是拿不到ip,因為在windows上,docker在virtualbox上,那就是虛擬機的ip問題,,,
大哥我只是想搞搞docker...你讓我折騰virtualbox,所以說這些東西能linux就linux....
二
說真的,最喜歡這種帶errcode的報錯,github上找起來不是一般的塊...
官方 https://github.com/docker/toolbox/issues/153
以下是他的解決方法,但是具體就是,把你的全刪除干凈,然后VirtualBox在配置一下
Here is what I did: Deleted all docker VMs (default, my-default etc.) Removed all "Host-only Networks" from VirtualBox -> Preferences -> Network Uninstalled VirtualBox Downloaded the latest VirtualBox installation file i.e. "VirtualBox-5.0.20-106931-Win.exe" Installed VirtualBox by running following command from Windows terminal: C:\Users\Home\Downloads>VirtualBox-5.0.20-106931-Win.exe -msiparams NETWORKTYPE=NDIS5 Completed the VirtualBox installation by following the prompts Ran Docker Quickstart Terminal which finally created and started the "default" VM successfully.
那么,我可不可以直接配置一下VirtualBox?
好吧問題又回到了折騰virtualbox.....
取巧偷他的圖片裝逼
三
折騰完,輸入docker run hello-world,我決定還是回家用linux慢慢學...